Skip to content

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

Merged
angrybrad merged 4 commits into5.xfrom
bugfix/settings-only-for-admins-and-with-allowAdminChanges
Feb 6, 2025
Merged

Settings pages are only for admins and when allowAdminChanges is true#1581
angrybrad merged 4 commits into5.xfrom
bugfix/settings-only-for-admins-and-with-allowAdminChanges

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