mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-23 00:01:16 +00:00
Allow former subscribers to lookup people
This commit is contained in:
parent
fcaa740710
commit
bf8a2a03ff
@ -14,7 +14,7 @@ def check_token(request):
|
||||
|
||||
class RightManagedLookupChannel(LookupChannel):
|
||||
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
|
||||
|
||||
@register('users')
|
||||
|
Loading…
Reference in New Issue
Block a user