From 59bb7d04c70dcfab3082e4792b2120f5ccff1904 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Wed, 15 Apr 2015 17:52:46 +0000 Subject: [PATCH] Group Permissions: Hide apps for which there are no permissions. --- core/users/group_permissions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/users/group_permissions.php b/core/users/group_permissions.php index 4c91b980d5..9c507218e6 100644 --- a/core/users/group_permissions.php +++ b/core/users/group_permissions.php @@ -362,6 +362,9 @@ require_once "resources/require.php"; //list all the permissions foreach($apps as $app_index => $app) { + //hide apps for which there are no permissions + if (!is_array($app['permissions']) || sizeof($app['permissions']) == 0) { continue; } + $app_name = $app['name']; $description = $app['description']['en-us'];