Skip to content

MyData: the "File Downloader" role alone should not be enough for cards of unpublished files to be displayed #2649

@pdurbin

Description

@pdurbin

From #2645 (comment)

When someone has the "File Downloader" role on a file, MyData currently displays file cards with links to datasets that can not be viewed ("Not Authorized"). These files are unpublished.

84351358-732b-11e5-9717-b66b008b4c65

@scolapasta and I discussed this and decided that these cards showing unpublished files should not appear in MyData based on the "File Downloader" role alone. This related to #2648 in that users with the "File Downloader" role alone shouldn't be able to download these files when the dataset has not yet been published.

I was thinking that perhaps the code in MyData that the generates the list of IDs could be modified to exclude these cards but @scolapasta suggested that MyData could be modified to start using the same "Solr permission documents" (a Solr JOIN) that the home pages uses. I'll consult with @raprasad and @sekmiller about this.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions