Changes between Version 2 and Version 3 of Ticket #25075, comment 4


Ignore:
Timestamp:
Jul 14, 2015, 9:48:08 PM (9 years ago)
Author:
Grigoriy Kramarenko

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25075, comment 4

    v2 v3  
    1 In the documentation I have seen only vague: "If the user is logged in, execute the view normally. The view code is free to assume the user is logged in."
     1In the documentation I have seen ([https://docs.djangoproject.com/en/stable/topics/auth/default/#the-login-required-decorator on link]) only vague: "If the user is logged in, execute the view normally. The view code is free to assume the user is logged in."
    22
    33The documentation should be written clearly, that: "Note, if the administrator has turned off the user by using "is_active", the user will have access to all the views that are under the control of the decorator until the action of the session key."
     
    8282But: `is_authenticated()` != `is_active`
    8383Where is logic?
     84To distinguish anonymous users from real users have a method `is_anonymous()`.
Back to Top