Pay attention to user application permissions when going through link registry.

Fixes not available applications registering conflicting mimes with allowed applications.
This commit is contained in:
Nathan Gray 2014-01-14 17:16:08 +00:00
parent cb8b279e94
commit 16c922c199

View File

@ -170,7 +170,7 @@ class egw_link extends solink
// for performance reasons, we do it only once / cache it in the session // for performance reasons, we do it only once / cache it in the session
if (!($search_link_hooks = $GLOBALS['egw']->session->appsession('search_link_hooks','phpgwapi'))) if (!($search_link_hooks = $GLOBALS['egw']->session->appsession('search_link_hooks','phpgwapi')))
{ {
$search_link_hooks = $GLOBALS['egw']->hooks->process('search_link', array(), true); $search_link_hooks = $GLOBALS['egw']->hooks->process('search_link');
$GLOBALS['egw']->session->appsession('search_link_hooks','phpgwapi',$search_link_hooks); $GLOBALS['egw']->session->appsession('search_link_hooks','phpgwapi',$search_link_hooks);
} }
if (is_array($search_link_hooks)) if (is_array($search_link_hooks))