Remove OC_Group call
OC_Group has been removed in March with https://github.com/nextcloud/server/pull/4867, the check in question is also performed two lines below already. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
8e7cff2eac
commit
6ff40e64fb
|
@ -812,7 +812,7 @@ class Share extends Constants {
|
|||
\OCP\Util::writeLog('OCP\Share', sprintf($message, $itemSourceName, $shareWith), \OCP\Util::DEBUG);
|
||||
throw new \Exception($message_t);
|
||||
}
|
||||
if ($shareWithinGroupOnly && !\OC_Group::inGroup($uidOwner, $shareWith)) {
|
||||
if ($shareWithinGroupOnly) {
|
||||
$group = \OC::$server->getGroupManager()->get($shareWith);
|
||||
$user = \OC::$server->getUserManager()->get($uidOwner);
|
||||
if (!$group || !$user || !$group->inGroup($user)) {
|
||||
|
|
Loading…
Reference in New Issue