Changes between Initial Version and Version 1 of Ticket #6990
- Timestamp:
- Jun 16, 2008, 3:52:36 PM (16 years ago)
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 %} 1 In the admin template: 2 3 {{{ 4 django/contrib/admin/templates/admin/base.html: 5 {% if user.is_authenticated and user.is_staff %} 6 }}} 2 7 3 8 While 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.