summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2019-07-02 11:20:53 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-07-02 11:20:53 +0200
commit4b32d039dbb59b3c3e76587df5c58150e752d9ac (patch)
tree1210d6f2cb7a38a3bb38843b5ea0dd37f3c378a1 /docs/ref
parentfbb83fefd43a89d1a802d77dcc3a9c9ac15a5afa (diff)
Fixed #28588 -- Doc'd User.has_perm() & co. behavior for active superusers.
Equivalent note for PermissionsMixin was added in d33864ed138f65070049a3ac20ee98e03a1442b9.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/auth.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt
index 877ec168e5..e3dda3045f 100644
--- a/docs/ref/contrib/auth.txt
+++ b/docs/ref/contrib/auth.txt
@@ -221,7 +221,8 @@ Methods
Returns ``True`` if the user has the specified permission, where perm
is in the format ``"<app label>.<permission codename>"``. (see
documentation on :ref:`permissions <topic-authorization>`). If the user is
- inactive, this method will always return ``False``.
+ inactive, this method will always return ``False``. For an active
+ superuser, this method will always return ``True``.
If ``obj`` is passed in, this method won't check for a permission for
the model, but for this specific object.
@@ -231,7 +232,8 @@ Methods
Returns ``True`` if the user has each of the specified permissions,
where each perm is in the format
``"<app label>.<permission codename>"``. If the user is inactive,
- this method will always return ``False``.
+ this method will always return ``False``. For an active superuser, this
+ method will always return ``True``.
If ``obj`` is passed in, this method won't check for permissions for
the model, but for the specific object.
@@ -240,7 +242,8 @@ Methods
Returns ``True`` if the user has any permissions in the given package
(the Django app label). If the user is inactive, this method will
- always return ``False``.
+ always return ``False``. For an active superuser, this method will
+ always return ``True``.
.. method:: email_user(subject, message, from_email=None, **kwargs)