mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #4877 from nextcloud/oc-group-is-gone
Remove OC_Group call
This commit is contained in:
commit
c995bcd557
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue