mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Force restriction of RestrictedQuerySet even for superusers
This commit is contained in:
@ -327,7 +327,7 @@ class ModelViewSet(_ModelViewSet):
|
||||
def initial(self, request, *args, **kwargs):
|
||||
super().initial(request, *args, **kwargs)
|
||||
|
||||
if not request.user.is_authenticated or request.user.is_superuser:
|
||||
if not request.user.is_authenticated:
|
||||
return
|
||||
|
||||
# TODO: Reconcile this with TokenPermissions.perms_map
|
||||
|
Reference in New Issue
Block a user