Skip to content

Commit

Permalink
Add sharing scope to enable addressbook sharing with customgroups
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian1998 committed Dec 10, 2018
1 parent ad60d7c commit cbb4bd9
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 cbb4bd9

Please sign in to comment.