Allow former subscribers to lookup people

This commit is contained in:
Skia 2017-02-02 22:54:56 +01:00
parent fcaa740710
commit bf8a2a03ff

View File

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