From 2770e752b448815e929586ef0e576818cd36134d Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Sat, 15 Aug 2015 11:56:51 -0500 Subject: [PATCH] create new permission group "Groups" in php --- web/includes/actions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/includes/actions.php b/web/includes/actions.php index 6fdb33a9b..1f9a72be6 100644 --- a/web/includes/actions.php +++ b/web/includes/actions.php @@ -624,8 +624,8 @@ if ( !empty($action) ) } } - // System view actions - if ( $action == "setgroup" ) { + // Group view actions + if ( canView( 'Groups' ) && $action == "setgroup" ) { if ( !empty($_REQUEST['gid']) ) { setcookie( "zmGroup", validInt($_REQUEST['gid']), time()+3600*24*30*12*10 ); } else {