From: INOPIAE Date: Sat, 14 Jul 2018 08:09:53 +0000 (+0200) Subject: add: ensure org ra agents cannot manage org where they are org admin X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=e5604e07f9a5c251342f667e6ee5e45e7dd12ab7;ds=sidebyside add: ensure org ra agents cannot manage org where they are org admin As org admin of the organisation they should only be able to edit org admins of that organisation but no organisation details. Change-Id: Icbdd215f9f50ed106176c6af5e796cb62fcb5593 --- diff --git a/src/club/wpia/gigi/pages/orga/ViewOrgPage.java b/src/club/wpia/gigi/pages/orga/ViewOrgPage.java index 909f9efe..6d7e9a2a 100644 --- a/src/club/wpia/gigi/pages/orga/ViewOrgPage.java +++ b/src/club/wpia/gigi/pages/orga/ViewOrgPage.java @@ -93,7 +93,7 @@ public class ViewOrgPage extends ManagedMultiFormPage { return; } Map vars = Page.getDefaultVars(req); - if (orgAss) { + if (orgAss && !myOrgs.contains(o)) { vars.put("editForm", new CreateOrgForm(req, o)); vars.put("affForm", new AffiliationForm(req, o)); vars.put("mgmDom", new DomainManagementForm(req, o, true));