circle sharing

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-10-15 08:30:25 +02:00
parent 99591eae0e
commit e7fcef3e3a

View File

@@ -262,6 +262,26 @@ class PermissionService {
$users[$user->getUID()] = new User($user);
}
}
if ($this->circlesEnabled && $acl->getType() === Acl::PERMISSION_TYPE_CIRCLE) {
try {
$circle = \OCA\Circles\Api\v1\Circles::detailsCircle($acl->getParticipant(), true);
if ($circle === null) {
$this->logger->info('No circle found for acl rule ' . $acl->getId());
continue;
}
/* $b = $circle->getMember();
foreach ($circle['members'] as $user) {
$a = $user;
//$users[$user->userId()] = new User($user);
} */
} catch (\Exception $e) {
$this->logger->info('Member not found in circle that was accessed. This should not happen.');
}
}
}
$this->users[(string) $boardId] = $users;
return $this->users[(string) $boardId];