From b9335d6cfb8e469147ecffb8dc3ea6874302b795 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 22 Mar 2012 12:44:18 +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 91b5539f2b..de24d3285d 100644 --- a/phpgwapi/inc/class.egw_link.inc.php +++ b/phpgwapi/inc/class.egw_link.inc.php @@ -913,7 +913,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) {