Skip to content

Commit

Permalink
rename .name -> .value (#3185)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Dec 18, 2024
1 parent dbe18f7 commit be50e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth-api/src/auth_api/resources/v1/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def post_user():

# Ensure STAFF doesn't have GOV_ACCOUNT_USER, otherwise they get extra permissions they shouldn't have.
roles = token.get("realm_access", {}).get("roles", [])
if Role.STAFF.name in roles and Role.GOV_ACCOUNT_USER.value in roles:
if Role.STAFF.value in roles and Role.GOV_ACCOUNT_USER.value in roles:
current_app.logger.info("Removing GOV_ACCOUNT_USER group from STAFF user")
KeycloakService.remove_user_from_group(token.get("sub"), GROUP_GOV_ACCOUNT_USERS)

Expand Down

0 comments on commit be50e07

Please sign in to comment.