Skip to content

Commit

Permalink
Update permissions in view access decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsetzer committed Nov 26, 2024
1 parent c0efe6c commit 70566f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion perma_web/perma/views/user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,9 @@ def manage_organization_user(request):
return list_users_in_group(request, 'organization_user')


@user_passes_test_or_403(lambda user: user.is_staff or user.is_registrar_user())
@user_passes_test_or_403(
lambda user: user.is_staff or user.is_registrar_user() or user.is_organization_user
)
def manage_organization_user_export_user_list(request: HttpRequest):
"""Return a file listing users across organizations."""
# Get query results via list_sponsored_users
Expand Down

0 comments on commit 70566f8

Please sign in to comment.