Properly fetch infromation for personal circles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -190,10 +190,9 @@ class PermissionService {
|
||||
|
||||
if ($this->circlesEnabled && $acl->getType() === Acl::PERMISSION_TYPE_CIRCLE) {
|
||||
try {
|
||||
\OCA\Circles\Api\v1\Circles::getMember($acl->getParticipant(), $this->userId, 1);
|
||||
\OCA\Circles\Api\v1\Circles::getMember($acl->getParticipant(), $this->userId, 1, true);
|
||||
return $acl->getPermission($permission);
|
||||
} catch (\Exception $e) {
|
||||
// TODO: getMember doesn't work for personal circles
|
||||
$this->logger->info('Member not found in circle that was accessed. This should not happen.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user