Merge pull request #10494 from owncloud/fix_upload_to_public_folder

set incognitoMode to true during upload to a public folder
This commit is contained in:
Björn Schießle 2014-08-19 10:13:38 +02:00
commit 312ed53307
1 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,8 @@ if (empty($_POST['dirToken'])) {
// and the upload/file transfer code needs to be refactored into a utility method
// that could be used there
\OC_User::setIncognitoMode(true);
// return only read permissions for public upload
$allowedPermissions = OCP\PERMISSION_READ;
$publicDirectory = !empty($_POST['subdir']) ? $_POST['subdir'] : '/';