mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
[MNT-24146] Admin user unable to update passowrd
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.");
|
||||
}
|
||||
|
@@ -266,7 +266,7 @@ public class Person implements Serializable
|
||||
|
||||
public Boolean isEnabled()
|
||||
{
|
||||
return enabled;
|
||||
return enabled == null ? Boolean.FALSE : enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(Boolean enabled)
|
||||
|
Reference in New Issue
Block a user