Removed code that would prevent changes on disabled profile.

This commit is contained in:
cake
2025-12-22 15:46:52 +01:00
parent 76bdbe28da
commit 8515364ffd

View File

@@ -864,12 +864,6 @@ public partial class LightlessHub
{
groupProfileDb.Group ??= group;
if (groupProfileDb?.ProfileDisabled ?? false)
{
await Clients.Caller.Client_ReceiveServerMessage(MessageSeverity.Error, "Your profile was permanently disabled and cannot be edited").ConfigureAwait(false);
return;
}
groupProfileDb.UpdateProfileFromDto(dto, sanitizedProfileImage, sanitizedBannerImage);
}