From a761ade1aa8cb0204eda429e3798efb1a1155b97 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 9 Feb 2023 08:25:18 +0100 Subject: [PATCH] SEBSERV-344 --- .../ethz/seb/sebserver/gui/content/admin/UserAccountForm.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/content/admin/UserAccountForm.java b/src/main/java/ch/ethz/seb/sebserver/gui/content/admin/UserAccountForm.java index 8af6fd5c..f1ae9962 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/content/admin/UserAccountForm.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/content/admin/UserAccountForm.java @@ -286,6 +286,10 @@ public class UserAccountForm implements TemplateComposer { .ignoreMoveAwayFromEdit() .publishIf(() -> !readonly) + .newAction(ActionDefinition.USER_ACCOUNT_CHANGE_PASSWORD) + .withEntityKey(entityKey) + .publishIf(() -> modifyGrant && !readonly && institutionActive && userAccount.isActive()) + .newAction(ActionDefinition.USER_ACCOUNT_SAVE_AND_ACTIVATE) .withEntityKey(entityKey) .withExec(formHandle::saveAndActivate)