-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
401 if an unauthorized user attempts to download a workflow restricte…
…d file (#5921) * Return 401s if an unauthorized user attempts to download a workflow restricted file * Add method for finding parent * Removed expectation that thumbnail be retrieved without contacting fedora, since this seems to be required in order to verify whether it is in a workflow * Use ActiveFedora::Base.where to find the FileSet to save trip to fedora * Move test into context where it should have permission, and remove no fedora calls test * Switch back to using valkyrie friendly lookup of fileset and parent * Make the lines super long to make rubocop happy
- Loading branch information
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters