SEBSERV-344

This commit is contained in:
anhefti 2023-02-09 08:25:18 +01:00
parent c26f8da944
commit a761ade1aa

View file

@ -286,6 +286,10 @@ public class UserAccountForm implements TemplateComposer {
.ignoreMoveAwayFromEdit() .ignoreMoveAwayFromEdit()
.publishIf(() -> !readonly) .publishIf(() -> !readonly)
.newAction(ActionDefinition.USER_ACCOUNT_CHANGE_PASSWORD)
.withEntityKey(entityKey)
.publishIf(() -> modifyGrant && !readonly && institutionActive && userAccount.isActive())
.newAction(ActionDefinition.USER_ACCOUNT_SAVE_AND_ACTIVATE) .newAction(ActionDefinition.USER_ACCOUNT_SAVE_AND_ACTIVATE)
.withEntityKey(entityKey) .withEntityKey(entityKey)
.withExec(formHandle::saveAndActivate) .withExec(formHandle::saveAndActivate)