[MNT-24146] Admin user unable to update passowrd

This commit is contained in:
DurgDineshsai
2025-05-13 10:39:16 +05:30
parent 71eed6822d
commit 2e851cf88d
2 changed files with 2 additions and 2 deletions

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.");
}

View File

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