#8049: AdminSite login has_permission inconsistency
---------------------------------------------+------------------------------
          Reporter:  nathan                  |         Owner:  nobody           
             
            Status:  new                     |     Milestone:                   
             
         Component:  Admin interface         |       Version:  1.0              
             
        Resolution:                          |      Keywords:  AdminSite login 
has_permission
             Stage:  Design decision needed  |     Has_patch:  0                
             
        Needs_docs:  0                       |   Needs_tests:  0                
             
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Changes (by mredar):

  * version:  SVN => 1.0

Comment:

 This problem also limits the utility of custom AdminSites. I wanted to
 override the has_permission to allow non-staff users to access a limited
 customized AdminSite, while retaining the default admin site with full
 access for staff users. By using the has_permission test in both places,
 it will allow more custom usage of the admin interface.
 Could also create a new function, perhaps 'has_access_permission', as
 separate test to see if the user can access the AdminSite at all?
 Subclasses will then have an easy way to control access to custom
 AdminSites.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8049#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to