Bugfix with property/callable

This commit is contained in:
Skia 2017-02-24 04:36:10 +01:00
parent 801f6ec786
commit 4d6c4314e2
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ def check_token(request):
class RightManagedLookupChannel(LookupChannel):
def check_auth(self, request):
if not request.user.was_subscribed() and not check_token(request):
if not request.user.was_subscribed and not check_token(request):
raise PermissionDenied
@register('users')

View File

@ -410,7 +410,7 @@ class User(AbstractBaseUser):
return user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or user.is_root
def can_be_viewed_by(self, user):
return (user.was_subscribed() and self.is_subscriber_viewable) or user.is_root
return (user.was_subscribed and self.is_subscriber_viewable) or user.is_root
def get_mini_item(self):
return """