samvera / hyrax

Hyrax is a Ruby on Rails Engine built by the Samvera community. Hyrax provides a foundation for creating many different digital repository applications.
http://hyrax.samvera.org/
Apache License 2.0
184 stars 124 forks source link

Sirenia docker image testing - works can't be transferred by an admin when feature flipper set to Off #6536

Closed eporter23 closed 1 month ago

eporter23 commented 10 months ago

Descriptive summary

For Hyrax use case testing steps RA_1.9 in the worksheet, when the Features > Transfer works option is set to Off, an Admin user can see the option to Transfer works but is redirected to a Not Authorized error.

Steps to reproduce the behavior in User Interface (UI)

  1. Login as an Admin user
  2. Navigate to Settings > Features and ensure Transfer works is set to off
  3. Go to Dashboard > Works and select a work you have deposited as an admin user
  4. In the actions menu, select Transfer Ownership of Work
  5. Observe that you are redirected to the homepage with a banner indicating "You are not authorized to access this page."

Actual behavior (include screenshots if available)

Include what version of Hyrax relates to this issue (3.x, 4.x, main branch, etc.) if appropriate, and any relevant error messages/tracebacks if you're reporting a bug.

Sirenia docker image - Hyrax 5 rc2.

Screen Shot 2023-12-12 at 12 39 51 PM Screen Shot 2023-12-12 at 12 33 49 PM

Acceptance Criteria/Expected Behavior

Rationale (for feature request only)

Provide the rationale or user story that describes "why" this issue should be addressed. Especially if this is a new feature or significant change to the existing implementation.

Admin users should be able to transfer works regardless of the Feature setting. This is the behavior noted in the test worksheet and confirmed in dev.nurax.

Related work

Link to related issues or prior related work here.

eporter23 commented 1 month ago

This was retested during the Sirenia pairtree configuration testing round and no longer recurs.