Skip to content
Snippets Groups Projects
Unverified Commit 6ff40e64 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

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: default avatarLukas Reschke <lukas@statuscode.ch>
parent 8e7cff2e
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment