From 8f31377b99d0570ca574111b28cec8b81b22bb94 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 7 Aug 2025 11:27:17 +0200 Subject: [PATCH] fix(GroupService): update to disable to change if the group is internal --- .../DigitalData.UserManager.API.csproj | 18 +----------------- .../Services/GroupService.cs | 2 +- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/DigitalData.UserManager.API/DigitalData.UserManager.API.csproj b/src/DigitalData.UserManager.API/DigitalData.UserManager.API.csproj index eb2e3e0..36f9b35 100644 --- a/src/DigitalData.UserManager.API/DigitalData.UserManager.API.csproj +++ b/src/DigitalData.UserManager.API/DigitalData.UserManager.API.csproj @@ -10,23 +10,6 @@ icon.png - - - - - - - - - - - - - - - - - @@ -48,6 +31,7 @@ + diff --git a/src/DigitalData.UserManager.Application/Services/GroupService.cs b/src/DigitalData.UserManager.Application/Services/GroupService.cs index 955daa4..92c83cd 100644 --- a/src/DigitalData.UserManager.Application/Services/GroupService.cs +++ b/src/DigitalData.UserManager.Application/Services/GroupService.cs @@ -43,7 +43,7 @@ namespace DigitalData.UserManager.Application.Services var group = await _repository.ReadByIdAsync(gId); if (group is null) throw new ForbiddenException("Group not found."); - else if (!group.Internal) + else if (group.Internal) throw new ForbiddenException("Updates are not allowed for system groups."); return await base.UpdateAsync(updateDto); }