Skip to content

Commit

Permalink
Fixing roles
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-barraza committed Nov 26, 2024
1 parent 3e3612a commit 5580491
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions auth-api/src/auth_api/resources/v1/org.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def put_organization(org_id):
if not valid_format:
return {"message": schema_utils.serialize(errors)}, HTTPStatus.BAD_REQUEST
try:
org = OrgService.find_by_org_id(org_id, allowed_roles=(*CLIENT_ADMIN_ROLES, STAFF, USER))
org = OrgService.find_by_org_id(org_id, allowed_roles=(*CLIENT_ADMIN_ROLES, STAFF))
if (
org
and org.as_dict().get("accessType", None) == AccessType.ANONYMOUS.value
Expand Down Expand Up @@ -625,7 +625,6 @@ def get_org_payment_info(org_id):
Role.PUBLIC_USER.value,
Role.GOV_ACCOUNT_USER.value,
Role.STAFF_MANAGE_ACCOUNTS.value,
Role.CHANGE_ADDRESS.value,
]
)
def put_mailing_address(org_id):
Expand Down

0 comments on commit 5580491

Please sign in to comment.