Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide suppression unless library administrator (PP-1463) #121

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

tdilauro
Copy link
Contributor

@tdilauro tdilauro commented Jul 23, 2024

Description

Changes the Book Editor to not show book suppression ("Hide" / "Restore") buttons if the admin user is not a manager / administrator for the active library.

Motivation and Context

While testing admin UI functionality for hidden books on PP-1463, I noticed that we have been showing the buttons for any admin user. That could lead to a librarian- / user-level admin clicking the button, but eventually receiving a not authorized message.

It is better to just not show the button in the first place.

[Jira PP-1463]

How Has This Been Tested?

Checklist:

  • N/A - I have updated the documentation accordingly.
  • All new and existing tests passed.

@tdilauro tdilauro requested a review from ray-lee July 23, 2024 17:47
@tdilauro tdilauro changed the title Hide suppression unless library administarator Hide suppression unless library administrator (PP-1463) Jul 23, 2024
Copy link
Contributor

@ray-lee ray-lee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@tdilauro tdilauro merged commit 430422a into main Jul 23, 2024
1 check passed
@tdilauro tdilauro deleted the bugfix/hide-suppression-unless-library-admin branch July 23, 2024 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants