mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Allow access to upload in user/.tmp/ even if user has no rights to filemanager
This commit is contained in:
parent
9278680d14
commit
34e881d72c
@ -69,7 +69,8 @@ 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
|
// allow access to mounted eTemplates, if there are no filemanager or sitemgr-link app rights
|
||||||
elseif (preg_match('|/webdav.php/etemplates/|', $_SERVER['REQUEST_URI']))
|
// and still allow for temp file upload.
|
||||||
|
elseif (preg_match("/\/webdav\.php\/etemplates\/|\/webdav.php\/home\/".$GLOBALS['egw_info']['user']['account_lid']."\/.tmp\//", $_SERVER['REQUEST_URI']))
|
||||||
{
|
{
|
||||||
$GLOBALS['egw_info']['currentapp'] = 'api';
|
$GLOBALS['egw_info']['currentapp'] = 'api';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user