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:
commit
312ed53307
|
@ -24,6 +24,8 @@ if (empty($_POST['dirToken'])) {
|
||||||
// and the upload/file transfer code needs to be refactored into a utility method
|
// and the upload/file transfer code needs to be refactored into a utility method
|
||||||
// that could be used there
|
// that could be used there
|
||||||
|
|
||||||
|
\OC_User::setIncognitoMode(true);
|
||||||
|
|
||||||
// return only read permissions for public upload
|
// return only read permissions for public upload
|
||||||
$allowedPermissions = OCP\PERMISSION_READ;
|
$allowedPermissions = OCP\PERMISSION_READ;
|
||||||
$publicDirectory = !empty($_POST['subdir']) ? $_POST['subdir'] : '/';
|
$publicDirectory = !empty($_POST['subdir']) ? $_POST['subdir'] : '/';
|
||||||
|
|
Loading…
Reference in New Issue