-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
A user with update access can change its own ACL permissions #2094
Comments
@rhukster Should we disable expert mode from everyone else but super users? I'm asking this because expert mode saves YAML just like it was written into the text field without any other checks than YAML syntax errors and some XSS checks. |
Although I like the idea of disabling the expert mode for some, maybe making it configurable with an |
Well, the main issue with the expert mode is that it gives you raw access to the page. That means you can see every header variable on the page and you can modify it, no questions asked. As it bypasses (almost) all the security checks, I am not sure when we should expose it to the user. IMHO configuration option should not override ACL. That said, the check does need to be updated so that it has no effect when the user isn't allowed to see raw mode. |
I had this problem with my Grav 1.6 pages-permissions plugin. I’m not a PHP developer so my solution might seem to work for me and not actually be good, but I tackled the issue by defining locked properties. |
I do not like the locked properties approach for the same reason: users should not be able to see everything from the file. It also doesn't really work if the user can add an infinite amount of new properties which happen not to be listed in the locked list. |
Fair enough. :) |
Sounds like the most logical solution for me. |
This issue uses the same configuration as #2001. Versions used are:
As I understand ACL, a user should not be able to update its permissions except, maybe, for a super user. This is possible with Grav Admin plugin by following these steps:
permissions.groups.authors.delete
fromfalse
totrue
.The text was updated successfully, but these errors were encountered: