SEBSERV-142 fixes
This commit is contained in:
parent
c3b767b7a0
commit
004c54a173
3 changed files with 16 additions and 14 deletions
|
@ -286,6 +286,7 @@ public class UserAccountDeletePopup {
|
||||||
|
|
||||||
final Form form = formHandle.getForm();
|
final Form form = formHandle.getForm();
|
||||||
|
|
||||||
|
if (showDeps) {
|
||||||
form.getFieldInput(ARG_ALL_DEPENDENCIES)
|
form.getFieldInput(ARG_ALL_DEPENDENCIES)
|
||||||
.addListener(SWT.Selection, event -> {
|
.addListener(SWT.Selection, event -> {
|
||||||
if (Constants.TRUE_STRING.equals(form.getFieldValue(ARG_ALL_DEPENDENCIES))) {
|
if (Constants.TRUE_STRING.equals(form.getFieldValue(ARG_ALL_DEPENDENCIES))) {
|
||||||
|
@ -298,6 +299,7 @@ public class UserAccountDeletePopup {
|
||||||
form.setFieldValue(ARG_ALL_DEPENDENCIES, Constants.FALSE_STRING);
|
form.setFieldValue(ARG_ALL_DEPENDENCIES, Constants.FALSE_STRING);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return () -> pageContext
|
return () -> pageContext
|
||||||
.withAttribute(ARG_ALL_DEPENDENCIES, form.getFieldValue(ARG_ALL_DEPENDENCIES))
|
.withAttribute(ARG_ALL_DEPENDENCIES, form.getFieldValue(ARG_ALL_DEPENDENCIES))
|
||||||
|
|
|
@ -271,7 +271,7 @@ public class UserAccountForm implements TemplateComposer {
|
||||||
.newAction(ActionDefinition.USER_ACCOUNT_DELETE)
|
.newAction(ActionDefinition.USER_ACCOUNT_DELETE)
|
||||||
.withEntityKey(entityKey)
|
.withEntityKey(entityKey)
|
||||||
.withExec(this.userAccountDeletePopup.deleteWizardFunction(pageContext))
|
.withExec(this.userAccountDeletePopup.deleteWizardFunction(pageContext))
|
||||||
.publishIf(() -> (writeGrant || ownAccount) && readonly && institutionActive)
|
.publishIf(() -> writeGrant && readonly && institutionActive)
|
||||||
|
|
||||||
.newAction(ActionDefinition.USER_ACCOUNT_SAVE)
|
.newAction(ActionDefinition.USER_ACCOUNT_SAVE)
|
||||||
.withEntityKey(entityKey)
|
.withEntityKey(entityKey)
|
||||||
|
|
|
@ -77,7 +77,7 @@ public class AuthorizationServiceImpl implements AuthorizationService {
|
||||||
.withInstitutionalPrivilege(PrivilegeType.READ)
|
.withInstitutionalPrivilege(PrivilegeType.READ)
|
||||||
.withOwnerPrivilege(PrivilegeType.MODIFY)
|
.withOwnerPrivilege(PrivilegeType.MODIFY)
|
||||||
.andForRole(UserRole.EXAM_SUPPORTER)
|
.andForRole(UserRole.EXAM_SUPPORTER)
|
||||||
.withOwnerPrivilege(PrivilegeType.WRITE)
|
.withOwnerPrivilege(PrivilegeType.MODIFY)
|
||||||
.create();
|
.create();
|
||||||
|
|
||||||
// grants for seb client config
|
// grants for seb client config
|
||||||
|
|
Loading…
Reference in a new issue