aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-05-15 09:51:42 -0500
committerGitHub <noreply@github.com>2017-05-15 09:51:42 -0500
commitc995bcd557f4ffe8942a3af786e5edd7f2424bd4 (patch)
tree10c37ac6b135bee328876c05baa4c45c973dd477
parentd8f13dfe74e1929eda87d97c50e0509635017e9f (diff)
parent6ff40e64fb923c49281b62d31e60678c4ef66c73 (diff)
downloadnextcloud-server-c995bcd557f4ffe8942a3af786e5edd7f2424bd4.tar.gz
nextcloud-server-c995bcd557f4ffe8942a3af786e5edd7f2424bd4.zip
Merge pull request #4877 from nextcloud/oc-group-is-gone
Remove OC_Group call
-rw-r--r--lib/private/Share/Share.php2
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)) {