diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-09-07 13:51:38 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-09-08 14:51:28 +0200 |
commit | 7ded5a769b7d7d681c3a3260b77869b18c9822ae (patch) | |
tree | 68944d9f119e90b6ebbad2405d209770a9798c7a /apps/files_sharing/lib | |
parent | f496e471e06d546179e3f12af1e6cc9319db9bb3 (diff) | |
download | nextcloud-server-7ded5a769b7d7d681c3a3260b77869b18c9822ae.tar.gz nextcloud-server-7ded5a769b7d7d681c3a3260b77869b18c9822ae.zip |
Only normalize data in public shares and not crud
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 59089390667..4afa8899ed0 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -1187,7 +1187,9 @@ class ShareAPIController extends OCSController { } // normalize to correct public upload permissions - $newPermissions = Constants::PERMISSION_READ | Constants::PERMISSION_CREATE | Constants::PERMISSION_UPDATE | Constants::PERMISSION_DELETE; + if ($publicUpload === 'true') { + $newPermissions = Constants::PERMISSION_READ | Constants::PERMISSION_CREATE | Constants::PERMISSION_UPDATE | Constants::PERMISSION_DELETE; + } } if ($newPermissions !== null) { |