diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-05-15 14:52:40 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-05-15 14:52:40 +0200 |
commit | 6ff40e64fb923c49281b62d31e60678c4ef66c73 (patch) | |
tree | 7dd36e6eb0d9d1e3591f83511efad8243ae39bdd /lib | |
parent | 8e7cff2eac4e75eaac43911ec785a42b1f815561 (diff) | |
download | nextcloud-server-6ff40e64fb923c49281b62d31e60678c4ef66c73.tar.gz nextcloud-server-6ff40e64fb923c49281b62d31e60678c4ef66c73.zip |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share/Share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php index 1bfd0821354..dc96d856ba6 100644 --- a/lib/private/Share/Share.php +++ b/lib/private/Share/Share.php @@ -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)) { |