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

This commit is contained in:
Ralf Becker 2012-03-22 12:43:47 +00:00
parent 76d566d137
commit d8c9a194da

View File

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