From d8c9a194da378846ee09b666c16edc5195584ce7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 22 Mar 2012 12:43:47 +0000 Subject: [PATCH] only return mime-information of apps the user has access to --- phpgwapi/inc/class.egw_link.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_link.inc.php b/phpgwapi/inc/class.egw_link.inc.php index 94fe642320..7c8a34514f 100644 --- a/phpgwapi/inc/class.egw_link.inc.php +++ b/phpgwapi/inc/class.egw_link.inc.php @@ -910,7 +910,7 @@ class egw_link extends solink { foreach(self::$app_register as $app => $registry) { - if (isset($registry['mime'])) + if (isset($registry['mime']) && isset($GLOBALS['egw_info']['user']['apps'][$app])) { foreach($registry['mime'] as $mime => $data) {