limit to circles moderator

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange 2018-10-30 10:02:38 +01:00 committed by Julius Härtl
parent 72ad2d60b5
commit 275cea5d9c
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -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;
}