-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Permissions update: Get rid of remaining checks on ROLE_ADMIN #2342
Comments
FIXED |
MediaController.php: |
I think FIXED by introducing permission |
FIXED by introducing permission fetch_embed_data |
FIXED by introducing 3 permissions list_files:config, list_files:files, list_files:themes as the list files can be called for all 3 locations. I think only list_files:files is actually expected. |
…check in the locales() method on 'view' permission. (reference: bolt#2342)
…check in the locales() method on 'view' permission. (reference: #2342)
Closing this issue: All the changes mentioned have been done and merged. |
…check in the locales() method on 'view' permission. (reference: bolt#2342)
Searching in the Bolt sources leads to a couple of 'direct' uses of the ROLE_ADMIN role to check for access. This should be updated to a check against a (new?) permission listed in
permissions.yaml
to make these developer-configurable.Below a list of controller classes that still need to be updated. I think most are easy to fix as long as someone decides what the name of the permission should be or which existing permission can be used.
ContentLocalizationController.php
/edit_locales/{id}
MediaController.php
/media/crawl/{location}
MediaEditController.php
/media/edit/{id}
/media/edit/{id}
/media/new
EmbedController.php
/embed
FileListingController.php
/list_files
The text was updated successfully, but these errors were encountered: