-
Notifications
You must be signed in to change notification settings - Fork 57
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
IBX-715: Disabled buttons on the right sidebar if user has no permissions #1794
IBX-715: Disabled buttons on the right sidebar if user has no permissions #1794
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about others limitations which could be assigned to content/create ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Policy "content/manage_locations" is required to copy content. Also, shouldn't "Field Group" limitation be taken into account? Read access to the whole source subtree is checked to perform the "move Subtree" or "copy Subtree" actions.
after an internal talk with @mikadamczyk I changed the conception for this PR. Now, we only verify if it has the appropriate permissions, not looking at the limitations because the number of verification would slow down the loading of the content only to turn the button off or on. As verification is when trying to perform an action, we do not have to worry about the fact that the person will be able to perform the selected action. After the conversation, Sylvain also agreed to such a change |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Could you please merge up changes? |
Checklist:
$ composer fix-cs
)