mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
allow access to mounted eTemplates, if there are no filemanager or sitemgr-link app rights
This commit is contained in:
parent
a206ec325a
commit
1e90ba1cd1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user