Skip to content

Commit

Permalink
Merge pull request #33712 from owncloud/add-customgroups-for-contacts…
Browse files Browse the repository at this point in the history
…-sharing

Add customgroup sharing for contacts app
  • Loading branch information
DeepDiver1975 authored Dec 10, 2018
2 parents ad60d7c + cbb4bd9 commit 588da73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dav/lib/Connector/Sabre/Principal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* @author Bart Visscher <bartv@thisnet.nl>
* @author Jakob Sack <mail@jakobsack.de>
* @author Jörn Friedrich Dreyer <jfd@butonic.de>
* @author Julian Müller <julimueller1998@gmail.com>
* @author Lukas Reschke <lukas@statuscode.ch>
* @author Morris Jobke <hey@morrisjobke.de>
* @author Thomas Müller <thomas.mueller@tmit.eu>
Expand Down Expand Up @@ -145,7 +146,7 @@ public function getGroupMembership($principal, $needGroups = false) {
}

if ($this->hasGroups || $needGroups) {
$groups = $this->groupManager->getUserGroups($user);
$groups = $this->groupManager->getUserGroups($user, 'sharing');
$groups = \array_map(function ($group) {
/** @var IGroup $group */
return 'principals/groups/' . $group->getGID();
Expand Down

0 comments on commit 588da73

Please sign in to comment.