Skip to content

Commit 49af754

Browse files
authored
Merge pull request #845 from cisagov/RK_registrationMenu_logout_fix
Fixed issue with crashing when accessing user registration as Global View (CRASM-2293)
2 parents ee5c24e + a110208 commit 49af754

File tree

1 file changed

+1
-1
lines changed
  • backend/src/xfd_django/xfd_api/api_methods

1 file changed

+1
-1
lines changed

backend/src/xfd_django/xfd_api/api_methods/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def get_users_v2(state, regionId, invitePending, current_user):
347347
"""Retrieve a list of users based on optional filter parameters."""
348348
try:
349349
# Check if user is a regional admin or global admin
350-
if not is_regional_admin(current_user):
350+
if not is_regional_admin(current_user) | is_global_view_admin(current_user):
351351
raise HTTPException(status_code=401, detail="Unauthorized")
352352

353353
filters = {}

0 commit comments

Comments
 (0)