fix(GroupService): update to disable to change if the group is internal

This commit is contained in:
tekh 2025-08-07 11:27:17 +02:00
parent addf7585f2
commit 8f31377b99
2 changed files with 2 additions and 18 deletions

View File

@ -10,23 +10,6 @@
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
<ItemGroup>
<Compile Remove="wwwroot\assets\**" />
<Compile Remove="wwwroot\media\**" />
<Content Remove="wwwroot\assets\**" />
<Content Remove="wwwroot\media\**" />
<EmbeddedResource Remove="wwwroot\assets\**" />
<EmbeddedResource Remove="wwwroot\media\**" />
<None Remove="wwwroot\assets\**" />
<None Remove="wwwroot\media\**" />
</ItemGroup>
<ItemGroup>
<Content Remove="wwwroot\chunk-A2L6DXQH.js" />
<Content Remove="wwwroot\chunk-ZC35XWOR.js" />
<Content Remove="wwwroot\main-QF3MRK45.js" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="DigitalData.Auth.Client" Version="1.3.7" />
<PackageReference Include="DigitalData.Core.Abstraction.Application" Version="1.0.0" />
@ -48,6 +31,7 @@
<ItemGroup>
<Folder Include="ClientApp\" />
<Folder Include="wwwroot\" />
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>

View File

@ -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);
}