diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-10-30 10:02:38 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-11-02 12:09:28 +0100 |
commit | 275cea5d9ceee3236b28df8bda0ba520ffe38db5 (patch) | |
tree | 190b9e7f8511584cc7ff5ec4ee4b2838f00ae05a /apps/files_sharing/lib | |
parent | 72ad2d60b576f182d152735e749aa7e27ff05919 (diff) | |
download | nextcloud-server-275cea5d9ceee3236b28df8bda0ba520ffe38db5.tar.gz nextcloud-server-275cea5d9ceee3236b28df8bda0ba520ffe38db5.zip |
limit to circles moderator
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 0e53863f9b5..86481131334 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -1151,9 +1151,10 @@ class ShareAPIController extends OCSController { $sharedWith = substr($share->getSharedWith(), $shareWithStart, $shareWithLength); try { $member = \OCA\Circles\Api\v1\Circles::getMember($sharedWith, $userId, 1); - if ($member->getLevel() > 0) { + if ($member->getLevel() >= 4) { return true; } + return false; } catch (QueryException $e) { return false; } |