-
Notifications
You must be signed in to change notification settings - Fork 290
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
Added an option to show file actions in media modals #471
Conversation
What about to use this in permissions? (roles) |
What do you mean? |
I would agree if we were talking about a user's ability to create folders, but the change here is purely visual. If anything the permission should be on the action, and then the link would only be rendered if the user has the permission to do the action. Alternatively, perhaps always showing the create folder link is a better way forward. What was the reasoning for not showing this link in the partial? |
currently media actions is available in media section because that section is accessible only if you have permission to access, instead the modal media can be opened in any place with/without media permission and there is a security problem because anyone can delete files from other users. |
Does the controller that permit media deletion check permissions? |
not yet, for now it is managed only by
|
Then perhaps the modal should be rendered if and only if the user has permissions to delete files? |
To be honest I am not sure, in the old camaleon version we had an "add folder" button (even though it was never used) and in the new version we don't. I need to understand file uploads and permissions better to have an informed opinion. |
No description provided.