Skip to content

Commit

Permalink
fix: fix required role
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddseL committed Dec 19, 2024
1 parent 77a20f6 commit 86c0c7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ class UiResourceImpl(

@Transactional
override fun deleteOrganization(organizationId: String): IdResponse {
authUtils.requiresRole(Roles.UserRoles.AUTHORITY_USER)
authUtils.requiresRole(Roles.UserRoles.AUTHORITY_ADMIN)
return organizationDeletionApiService.deleteOrganizationAndDependencies(organizationId, loggedInUser.userId)
}
}

0 comments on commit 86c0c7d

Please sign in to comment.