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 a206ec325a
commit 1e90ba1cd1

View File

@ -68,6 +68,11 @@ catch (Api\Exception\NoPermission\App $e)
{
$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
{
throw $e;