only return mime-information of apps the user has access to

This commit is contained in:
Ralf Becker 2012-03-22 12:44:18 +00:00
parent e6dae8ba56
commit b9335d6cfb

View File

@ -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)
{