Skip to content

Conversation

@jeremystretch
Copy link
Member

Fixes: #13620

Set staff_only=True on all menu items under the "administration" heading

Copy link
Member

@abhi1693 abhi1693 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this still work for a superuser that does not have the is_staff flag set?

@jeremystretch
Copy link
Member Author

No; the menu items will still be hidden for a superuser if the user does not have is_staff set to True. IIRC this is consistent with Django's own admin UI.

@jeremystretch jeremystretch merged commit 78966e1 into develop Aug 31, 2023
@jeremystretch jeremystretch deleted the 13620-hide-admin-menus branch August 31, 2023 16:20
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot Remove Authentication > Tokens access with permissions

3 participants