File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2222* [ #7802 ] ( https://github.com/netbox-community/netbox/issues/7802 ) - Differentiate ID and VID columns in VLANs table
2323* [ #7808 ] ( https://github.com/netbox-community/netbox/issues/7808 ) - Fix reference values for content type under custom field import form
2424* [ #7809 ] ( https://github.com/netbox-community/netbox/issues/7809 ) - Add missing export template support for various models
25+ * [ #7814 ] ( https://github.com/netbox-community/netbox/issues/7814 ) - Fix restriction of user & group objects in GraphQL API queries
2526
2627---
2728
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Meta:
1919
2020 @classmethod
2121 def get_queryset (cls , queryset , info ):
22- return RestrictedQuerySet (model = Group )
22+ return RestrictedQuerySet (model = Group ). restrict ( info . context . user , 'view' )
2323
2424
2525class UserType (DjangoObjectType ):
@@ -34,4 +34,4 @@ class Meta:
3434
3535 @classmethod
3636 def get_queryset (cls , queryset , info ):
37- return RestrictedQuerySet (model = User )
37+ return RestrictedQuerySet (model = User ). restrict ( info . context . user , 'view' )
You can’t perform that action at this time.
0 commit comments