From fbc1d1db38a25a75988c209c17f35183ce7406fe Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 8 May 2017 17:21:51 +0200 Subject: [PATCH] Allow access to upload in user/.tmp/ even if user has no rights to filemanager --- webdav.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webdav.php b/webdav.php index 7e8a99a25c..1fc89b79ac 100644 --- a/webdav.php +++ b/webdav.php @@ -69,7 +69,8 @@ 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'])) + // 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'; }