diff --git a/authority-portal-backend/authority-portal-quarkus/src/main/kotlin/de/sovity/authorityportal/web/UiResourceImpl.kt b/authority-portal-backend/authority-portal-quarkus/src/main/kotlin/de/sovity/authorityportal/web/UiResourceImpl.kt index df9e4967..d0eb25f7 100644 --- a/authority-portal-backend/authority-portal-quarkus/src/main/kotlin/de/sovity/authorityportal/web/UiResourceImpl.kt +++ b/authority-portal-backend/authority-portal-quarkus/src/main/kotlin/de/sovity/authorityportal/web/UiResourceImpl.kt @@ -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) } }