hyrax icon indicating copy to clipboard operation
hyrax copied to clipboard

Hyrax-5844 - Cannot remove embargo from work - 2

Open fritzfreiheit opened this issue 2 years ago • 0 comments

Fixes #5844 ; refs #5572

Unembargoing a work under valkyrie throws an error

When deactivating an embargo on a work under koppie image/valkyrie, a TCP error is thrown by Hyrax::PermissionsController because it attempts to load ActiveFedora resource.

Screen Shot 2022-09-08 at 11 38 35 AM

Proposed change(s):

  • Update Hyrax::PermissionsController to

To test:

  • In koppie/nurax-pg, navigate to a Work which contains an embargo
  • Click the "Edit" button
  • In the "Save Work" box on the right side, click the "Embargo Management Page" link in the Visibility section
  • Click the "Deactivate Embargo" button
  • Error message appears (see screenshot above)

@samvera/hyrax-code-reviewers

fritzfreiheit avatar Sep 16 '22 19:09 fritzfreiheit