-
Notifications
You must be signed in to change notification settings - Fork 0
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
Some account settings not appearing for superadmins on tenant page #71
Labels
Comments
Hyku (hyku-demo)![]() vs. Pals |
ShanaLMoore
pushed a commit
to samvera/hyku
that referenced
this issue
Jan 14, 2025
Issue: - notch8/palni_palci_knapsack#71 Previously, superadmin settings like oai_prefix, oai_sample_identifier, and s3_bucket were being filtered out because public_settings wasn't taking the user's permissions into account, if set. This adds a permission check and passes it to public_settings to dynamically show/hide superadmin settings based on user role.
PALS has an account decorator with the following defined as super admin settings. These are the settings that are not being displayed even though the user is logged in as superadmin. The bug is because the hyku partial is not checking for user permissions, so it's is never showing super admin settings: Account.superadmin_settings = %i[
analytics_provider
contact_email
file_acl
file_size_limit
oai_prefix
oai_sample_identifier
s3_bucket
].freeze |
ShanaLMoore
pushed a commit
that referenced
this issue
Jan 14, 2025
Pulls in fix for missing superadmin settings in PALS. ref: - samvera/hyku#2411 Issue: - #71
Merged
QA Results: ✅ PassProcess
Superadmin
Screen.Recording.2025-01-15.at.3.02.37.PM.movRegular Admin
Screen.Recording.2025-01-15.at.3.07.41.PM.mov |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some fields (such as OAI prefix, OAI sample Identifier, S3 Bucket) appear for superadmins in the current production tenant account settings page, but not on the Valkyrized page.
Current:
Valkyrized test environment:
notes
LaRita checked that these fields are available in hyku, so it must be a pals specific issue
Testing Instructions
visit staging
In the admin dashboard, click on Settings > Accounts
verify the following super admin settings are available:
When user has superadmin access
When user does not have superadmin access. Admin user but not superadmin.
the above settings should not be displayed
The text was updated successfully, but these errors were encountered: