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

[4.x] Use 'configure' permission for configuring navs #9961

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

simonerd
Copy link
Contributor

Currently every user that is allowed to edit a nav (meaning adding new entries etc.) is also allowed to configure a nav (meaning changing the name, max depths etc.). This PR changes this behaviour to only allow the latter with the added configure policy, which resolves to the configure navs permission.

I don't know if that would be considered a breaking change. It feels like this should be a fix, as the behaviour for e. g. collections works like that, however, I can see that it actually changes something that might be used in a certain way for some people. If you consider it breaking, maybe it might be better to add this to 5.x.

Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

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

If you want to target master we can get it added to 5.x and call it a breaking change.

@jasonvarga
Copy link
Member

On second thought and after trying it, you're right. IMO this is just a fix. The configure permission already existed, we just weren't apply it appropriately there.

@jasonvarga jasonvarga merged commit 94666c2 into statamic:4.x Apr 26, 2024
18 checks passed
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