Changeset 3884
- Timestamp:
- 09/29/06 08:37:58 (2 years ago)
- Files:
-
- django/trunk/django/contrib/admin/views/decorators.py (modified) (1 diff)
- django/trunk/docs/authentication.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/admin/views/decorators.py
r3360 r3884 88 88 # The user data is correct; log in the user in and continue. 89 89 else: 90 if user.is_ staff:90 if user.is_active and user.is_staff: 91 91 login(request, user) 92 92 # TODO: set last_login with an event. django/trunk/docs/authentication.txt
r3835 r3884 67 67 * ``is_staff`` -- Boolean. Designates whether this user can access the 68 68 admin site. 69 * ``is_active`` -- Boolean. Designates whether this user can log into the70 Django admin. Set thisto ``False`` instead of deleting accounts.69 * ``is_active`` -- Boolean. Designates whether this account can be used 70 to log in. Set this flag to ``False`` instead of deleting accounts. 71 71 * ``is_superuser`` -- Boolean. Designates that this user has all permissions 72 72 without explicitly assigning them.
