mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
limit to circles moderator
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
72ad2d60b5
commit
275cea5d9c
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue