Merge pull request #3338 from Alfresco/fix/MNT-24146

[MNT-24146] - Unable to update password for 'admin' user
This commit is contained in:
DurgDineshsai
2025-05-15 12:00:59 +05:30
committed by GitHub

View File

@@ -712,7 +712,7 @@ public class PeopleImpl implements People
Boolean isEnabled = person.isEnabled();
if (isEnabled != null)
{
if (isAdminAuthority(personIdToUpdate))
if (!isEnabled && isAdminAuthority(personIdToUpdate))
{
throw new PermissionDeniedException("Admin authority cannot be disabled.");
}