We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5356b8 commit 830cf4bCopy full SHA for 830cf4b
netbox/netbox/authentication.py
@@ -34,7 +34,7 @@ def get_object_permissions(self, user_obj):
34
object_permissions = ObjectPermission.objects.filter(
35
self.get_permission_filter(user_obj),
36
enabled=True
37
- ).prefetch_related('object_types')
+ ).order_by('id').distinct('id').prefetch_related('object_types')
38
39
# Create a dictionary mapping permissions to their constraints
40
perms = defaultdict(list)
0 commit comments