-
Notifications
You must be signed in to change notification settings - Fork 130
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
Finer add permission check for displaying the "Add site tree Item" button #277
Comments
Hi, Thank you for the idea. Have you tried overriding You see, I'm afraid there's no convenient way to support that out of the box in sitetree. Since if we simply add a permission admin users will stil need to override the method mentioned above; and if we override it out-of-box, new users won't have it automatically and manual assignment will be required (that'll be not backward compatible). What do you think? |
Hi, I'm not sure I understand what you're proposing, and I realise I was not super detailed with my suggestion and the use case leading to it. What I was trying to achieve is the following:
Overriding This is due to this
Rather than overriding the whole template to adapt the check (which might lead to discrepancies as the library gets update), it would have been ideal that the check was made on a separate context variable (the Its value could be overridden in the ModelAdmin, say by overriding a How does that sound? |
Ah, I see. Thank you for the clarification. Adding new Pull request is welcome, if you will. |
Hello,
When editing a Site Tree, it'd be great if there was a specific permission check deciding whether to show the "Add site tree item", say "has_add_tree_item_permission". This would allow to remove the control for adding new Trees in the admin, but allow adding new Tree item.
Ran into the issue trying to allow admins to just edit pre-configured menus, without risking them adding new ones for nothing.
The text was updated successfully, but these errors were encountered: