diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-01-24 13:24:46 +0100 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-01-24 13:41:27 +0100 |
commit | 92d7dd4781bdf7c4134cd6fdbfd6f6915919545b (patch) | |
tree | 5278e2094cb91ac2aeeb26b3a65d289c0f1b9a72 /apps/files_sharing/lib | |
parent | 5d486478d3d6d316b1895ea440a05f31488e2f9f (diff) | |
download | nextcloud-server-92d7dd4781bdf7c4134cd6fdbfd6f6915919545b.tar.gz nextcloud-server-92d7dd4781bdf7c4134cd6fdbfd6f6915919545b.zip |
allow editing single files shared as public link
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index ccd0e3aa31d..6181cde6fe6 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -668,6 +668,7 @@ class ShareAPIController extends OCSController { \OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_CREATE | \OCP\Constants::PERMISSION_UPDATE, // legacy \OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_CREATE | \OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_DELETE, // correct \OCP\Constants::PERMISSION_CREATE, // hidden file list + \OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_UPDATE, // allow to edit single files ]) ) { throw new OCSBadRequestException($this->l->t('Can\'t change permissions for public share links')); |