Skip to content
Permalink
Browse files

Allow access to upload in user/.tmp/ even if user has no rights to fi…

…lemanager
  • Loading branch information
hnategh committed May 8, 2017
1 parent 9278680 commit 34e881d72c414a14ed3dc982c5e40cf5c65ad143
Showing with 2 additions and 1 deletion.
  1. +2 −1 webdav.php
@@ -69,7 +69,8 @@ function check_access(&$account)
$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';
}

0 comments on commit 34e881d

Please sign in to comment.
You can’t perform that action at this time.