remove unneeded superuser-access-code
This commit is contained in:
parent
7987aa08f3
commit
bb6b726a89
1 changed files with 0 additions and 3 deletions
|
@ -50,9 +50,6 @@ class AccessPermission(models.Model):
|
|||
if not request.user.is_authenticated:
|
||||
return set()
|
||||
|
||||
if request.user.is_superuser:
|
||||
return set(AccessRestriction.objects.all().values_list('pk', flat=True))
|
||||
|
||||
cache_key = cls.user_access_permission_key(request.user)
|
||||
access_restriction_ids = cache.get(cache_key, None)
|
||||
if access_restriction_ids is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue