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

Settings pages are only for admins and when allowAdminChanges is true #1581

Merged

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Jan 24, 2025

Description

The settings page should only be available to admins and only when allowAdminChanges is true.

The “Clear pending job queue” button, which was located on the Settings -> General page, was never restricted to just being available to admins, so I moved it to a new “Utilities” tab. This way, you’ll still be able to access it and trigger the action as you were before, even if you’re not an admin or the allowAdminChanges is off.

Note: if the plugin is not set up to show all the tabs, you might need/want to select the new “Utilities” tab and deploy the project config changes.

Related issues

n/a

@i-just i-just requested a review from angrybrad as a code owner January 24, 2025 09:30
@angrybrad angrybrad merged commit 22e0b24 into 5.x Feb 6, 2025
6 checks passed
@angrybrad angrybrad deleted the bugfix/settings-only-for-admins-and-with-allowAdminChanges branch February 6, 2025 04:14
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