Skip to content

Commit

Permalink
Defer fetching unnecessary nodegroup fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Oct 14, 2024
1 parent 2cc9d22 commit 97f97b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arches/app/permissions/arches_permission_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def get_nodegroups_by_perm_for_user_or_group(
NodeGroup,
)

for nodegroup in NodeGroup.objects.all():
for nodegroup in NodeGroup.objects.only("nodegroupid").all():
explicit_perms = checker.get_perms(nodegroup)

if len(explicit_perms):
Expand Down

0 comments on commit 97f97b8

Please sign in to comment.