adapt CanAccessLookup to api key auth

This commit is contained in:
imperosol
2025-05-20 21:04:49 +02:00
parent 284691fe48
commit b1c13bb892
10 changed files with 75 additions and 9 deletions

View File

@@ -189,4 +189,4 @@ class IsLoggedInCounter(BasePermission):
return Counter.objects.filter(token=token).exists()
CanAccessLookup = IsOldSubscriber | IsRoot | IsLoggedInCounter
CanAccessLookup = IsLoggedInCounter | HasPerm("core.access_lookup")