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

Disable editing field layouts when allowAdminChanges is false #31

Open
stevecomrie opened this issue Dec 21, 2021 · 1 comment
Open

Comments

@stevecomrie
Copy link

Basically, since the entire site's Settings control panel section is hidden when allowAdminChanges is false it makes sense to hide this section as well to prevent front-end users from being confused by these options.

Additionally / alternatively, it might be nice to have some increased flexibility for setting individual user permissions to hide some other features on a production site that might not be editable.

For example, disabling the ability to Add new Ad Groups, or alternatively the ability to hide the "Ad Groups" menu item entirely if it doesn't make sense for them to be edited on production.

@diegocosta-dev
Copy link

I would like to emphasize my agreement with this suggestion, as I believe it will bring significant benefits to the CraftCMS user experience.

Having the ability to hide options in the control panel, such as Ad Groups and Field Layouts, when allowAdminChanges is set to false would be an excellent addition. This would help avoid confusion, especially for front-end users, by limiting access to only the necessary functionalities in a production environment.

Additionally, I think adding greater flexibility to manage individual user permissions would be an ideal solution. For example:

Disabling the ability to create or delete Ad Groups.
Completely hiding the Ad Groups menu in environments where editing them doesn't make sense.
These changes would not only make the control panel more intuitive but also help prevent unwanted modifications to critical fields, promoting better security and consistency in production environments.

I hope to see these improvements considered in future updates! I'm confident they will greatly facilitate the work of both administrators and front-end users.

image

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

No branches or pull requests

2 participants