Changes between Initial Version and Version 1 of Ticket #6990


Ignore:
Timestamp:
Jun 16, 2008, 3:52:36 PM (16 years ago)
Author:
Ramiro Morales
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6990 – Description

    initial v1  
    1 In the admin template: django/contrib/admin/templates/admin/base.html:        {% if user.is_authenticated and user.is_staff %}
     1In the admin template:
     2
     3{{{
     4django/contrib/admin/templates/admin/base.html:
     5{% if user.is_authenticated and user.is_staff %}
     6}}}
    27
    38While checking if user is staff, it's No need to check if user is authenticated. Since user who is not authenticated can't pass the "user.is_staff" check, so the "user.is_authenticated" check could be omitted.
Back to Top