From e5604e07f9a5c251342f667e6ee5e45e7dd12ab7 Mon Sep 17 00:00:00 2001 From: INOPIAE Date: Sat, 14 Jul 2018 10:09:53 +0200 Subject: [PATCH] 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 --- src/club/wpia/gigi/pages/orga/ViewOrgPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.2