summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-10-30 10:02:38 +0100
committerJulius Härtl <jus@bitgrid.net>2018-11-02 12:09:28 +0100
commit275cea5d9ceee3236b28df8bda0ba520ffe38db5 (patch)
tree190b9e7f8511584cc7ff5ec4ee4b2838f00ae05a /apps/files_sharing/lib
parent72ad2d60b576f182d152735e749aa7e27ff05919 (diff)
downloadnextcloud-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.php3
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;
}