mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 11:04:20 +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):
|
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user