allow access to mounted eTemplates, if there are no filemanager or sitemgr-link app rights

This commit is contained in:
Ralf Becker 2017-04-26 19:34:07 +02:00
parent 88a168620c
commit 584ebabeed

View File

@ -68,6 +68,11 @@ catch (Api\Exception\NoPermission\App $e)
{ {
$GLOBALS['egw_info']['currentapp'] = 'sitemgr-link'; $GLOBALS['egw_info']['currentapp'] = 'sitemgr-link';
} }
// allow access to mounted eTemplates, if there are no filemanager or sitemgr-link app rights
elseif (preg_match('|/webdav.php/etemplates/|', $_SERVER['REQUEST_URI']))
{
$GLOBALS['egw_info']['currentapp'] = 'api';
}
else else
{ {
throw $e; throw $e;