mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-22 18:29:34 +00:00
adapt CanAccessLookup to api key auth
This commit is contained in:
1 parent
b5d65133f3
commit
52e53da9ef
10 files changed
+75
-9
No files matched your search
@@ -189,4 +189,4 @@ class IsLoggedInCounter(BasePermission):
|
||||
return Counter.objects.filter(token=token).exists()
|
||||
|
||||
|
||||
CanAccessLookup = IsOldSubscriber | IsRoot | IsLoggedInCounter
|
||||
CanAccessLookup = IsLoggedInCounter | HasPerm("core.access_lookup")
|
||||
Reference in new issue
Block a user