Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#34284 closed New feature (wontfix)

Permission to access adminsites

Reported by: Al Mahdi Owned by: nobody
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Dynamically customizing ModelAdmins of the default AdminSite for different staff's is not so efficient.

Rather it's better to have custom AdminSites for different staff's.

It would be great if we could give staffs the permission to only access the AdminSite we want.

Change History (4)

comment:1 by Al Mahdi, 2 years ago

Summary: Permissions to access a adminsitePermission to access a adminsite

comment:2 by Al Mahdi, 2 years ago

Summary: Permission to access a adminsitePermission to access adminsites

comment:3 by Mariusz Felisiak, 2 years ago

Resolution: wontfix
Status: newclosed

Thanks for the ticket, however Django Admin is not a universal tool for building an app and adding a new layer of access control (like any new customization option) is always controversial. Moreover, I don't think it's needed, you should be able to override AdminSite.has_permission() and control permissions for each AdminSite.

comment:4 by Al Mahdi, 2 years ago

Thanks. Overriding the has_permission method, works for me.

Note: See TracTickets for help on using tickets.
Back to Top