0003-misc-is_anonymous-is-yet-an-attibute-36608.patch
passerelle/urls_utils.py | ||
---|---|---|
119 | 119 |
def check_manager(user): |
120 | 120 |
if user and user.is_staff: |
121 | 121 |
return True |
122 |
if user and not user.is_anonymous():
|
|
122 |
if user and not user.is_anonymous: |
|
123 | 123 |
raise PermissionDenied() |
124 | 124 |
# As the last resort, show the login form |
125 | 125 |
return False |
126 |
- |