mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Refs #25847 -- Added system check for UserModel.is_anonymous/is_authenticated methods.
This commit is contained in:
parent
b3acf35f13
commit
03efa304bc
3 changed files with 60 additions and 0 deletions
|
@ -450,6 +450,12 @@ Auth
|
|||
to be at most 255 characters.
|
||||
* **auth.E008**: The permission named ``<name>`` of model ``<model>`` is longer
|
||||
than 255 characters.
|
||||
* **auth.C009**: ``<User model>.is_anonymous`` must be an attribute or property
|
||||
rather than a method. Ignoring this is a security issue as anonymous users
|
||||
will be treated as authenticated!
|
||||
* **auth.C010**: ``<User model>.is_authenticated`` must be an attribute or
|
||||
property rather than a method. Ignoring this is a security issue as anonymous
|
||||
users will be treated as authenticated!
|
||||
|
||||
|
||||
Content Types
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue