Skip to content

Commit

Permalink
Added detaisl about restricting users
Browse files Browse the repository at this point in the history
  • Loading branch information
shabda committed Feb 19, 2018
1 parent 274cc36 commit bb790e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Binary file added docs/access_no_is_staff.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imagefield.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/specific_users.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
How to restrict Django admin to specific users?
================================================

Django admin allows access to users marked as :code:`is_staff=True`.
To disable a user from being able to access the admin, you should set :code:`is_staff=True`.

This holds true even if the user is a superuser. :code:`is_superuser=True`. If a non-staff tries to access the admin, they see a message like this.

0 comments on commit bb790e7

Please sign in to comment.