From 6ff40e64fb923c49281b62d31e60678c4ef66c73 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 15 May 2017 14:52:40 +0200 Subject: [PATCH] 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 --- lib/private/Share/Share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php index 1bfd0821354e4..dc96d856ba60c 100644 --- a/lib/private/Share/Share.php +++ b/lib/private/Share/Share.php @@ -812,7 +812,7 @@ public static function shareItem($itemType, $itemSource, $shareType, $shareWith, \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)) {