mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merge pull request #3338 from Alfresco/fix/MNT-24146
[MNT-24146] - Unable to update password for 'admin' user
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user