]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove OC_Group call 4877/head
authorLukas Reschke <lukas@statuscode.ch>
Mon, 15 May 2017 12:52:40 +0000 (14:52 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 15 May 2017 12:52:40 +0000 (14:52 +0200)
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>
lib/private/Share/Share.php

index 1bfd0821354e49fd34bb605766ed8db161e8cba7..dc96d856ba60cef946f60b38302c7ebe2fb480e0 100644 (file)
@@ -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)) {