From 6d7a5553686b5ea6365039d15c2515cb8881a348 Mon Sep 17 00:00:00 2001 From: iglocska Date: Wed, 24 Nov 2021 01:28:01 +0100 Subject: [PATCH] chg: [index views] slight changes - hide inaccessible action buttons on org index - add owner to sharing group index --- templates/Organisations/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/Organisations/index.php b/templates/Organisations/index.php index 0448c77..4b34aab 100644 --- a/templates/Organisations/index.php +++ b/templates/Organisations/index.php @@ -94,12 +94,14 @@ echo $this->element('genericElements/IndexTable/index_table', [ [ 'open_modal' => '/organisations/edit/[onclick_params_data_path]', 'modal_params_data_path' => 'id', - 'icon' => 'edit' + 'icon' => 'edit', + 'requirement' => $loggedUser['role']['perm_admin'] ], [ 'open_modal' => '/organisations/delete/[onclick_params_data_path]', 'modal_params_data_path' => 'id', - 'icon' => 'trash' + 'icon' => 'trash', + 'requirement' => $loggedUser['role']['perm_admin'] ], ] ]