From 58845f080998affe93f40e3702c22e81987c8c41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Wed, 11 Apr 2012 00:04:22 +0200 Subject: [PATCH] Allows group animators to edit group's lists' members (Closes #1518). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- ChangeLog | 3 +++ modules/lists.php | 12 +++++++++++- templates/lists/admin.tpl | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9436373..387dc08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -33,6 +33,9 @@ Bug/Wish: - #1596, #1598: Lists non-X accounts awaiting validation -JAC - #1609: Adds link to account on Xnet account validation -JAC + * XnetList: + - #1518: Allows group animators to edit group's lists' members -JAC + * XnetNl: - #1606: Fixes Xnet NL deletion -JAC diff --git a/modules/lists.php b/modules/lists.php index 37c1874..8a5ccb9 100644 --- a/modules/lists.php +++ b/modules/lists.php @@ -616,7 +616,17 @@ class ListsModule extends PLModule } $domain = $this->prepare_client($page); - $this->verify_list_owner($page, $liste); + $force_rights = false; + if ($GLOBALS['IS_XNET_SITE']) { + $perms = S::v('perms'); + if (is_object($perms) && $perms->hasFlag('groupadmin')) { + $force_rights = true; + } + } + $page->assign('group_admin', $force_rights); + if (!$force_rights) { + $this->verify_list_owner($page, $liste); + } $page->changeTpl('lists/admin.tpl'); diff --git a/templates/lists/admin.tpl b/templates/lists/admin.tpl index 02c8f06..328a06f 100644 --- a/templates/lists/admin.tpl +++ b/templates/lists/admin.tpl @@ -23,7 +23,7 @@ {if !$details.own}

-Tu n'es pas administrateur de la liste, mais du site. +Tu n'es pas administrateur de la liste, mais {if $group_admin}du groupe{else}du site{/if}.

{/if} -- 2.1.4