From 86c0c7d32d4d42238937bddb5c2fe2ecc8695375 Mon Sep 17 00:00:00 2001 From: Patrick Schauer Date: Thu, 19 Dec 2024 11:49:28 +0100 Subject: [PATCH] fix: fix required role --- .../main/kotlin/de/sovity/authorityportal/web/UiResourceImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }