Skip to content

Commit 57e8504

Browse files
committed
One more place where is_authenticated is not a method, rather its a property
1 parent f3f76b6 commit 57e8504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_rules/backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def has_perm(self, user_obj, perm, obj=None):
5252
if obj is None:
5353
return False
5454

55-
if not user_obj.is_authenticated():
55+
if not user_obj.is_authenticated:
5656
user_obj = User.objects.get(pk=settings.ANONYMOUS_USER_ID)
5757

5858
# Centralized authorizations

0 commit comments

Comments
 (0)