|
@@ 226-233 (lines=8) @@
|
| 223 |
|
$acls = $this->aclMapper->findAll($boardId); |
| 224 |
|
/** @var Acl $acl */ |
| 225 |
|
foreach ($acls as $acl) { |
| 226 |
|
if ($acl->getType() === Acl::PERMISSION_TYPE_USER) { |
| 227 |
|
$user = $this->userManager->get($acl->getParticipant()); |
| 228 |
|
if ($user === null) { |
| 229 |
|
$this->logger->info('No user found for acl rule ' . $acl->getId()); |
| 230 |
|
continue; |
| 231 |
|
} |
| 232 |
|
$users[$user->getUID()] = new User($user); |
| 233 |
|
} |
| 234 |
|
if ($acl->getType() === Acl::PERMISSION_TYPE_GROUP) { |
| 235 |
|
$group = $this->groupManager->get($acl->getParticipant()); |
| 236 |
|
if ($group === null) { |
|
@@ 234-243 (lines=10) @@
|
| 231 |
|
} |
| 232 |
|
$users[$user->getUID()] = new User($user); |
| 233 |
|
} |
| 234 |
|
if ($acl->getType() === Acl::PERMISSION_TYPE_GROUP) { |
| 235 |
|
$group = $this->groupManager->get($acl->getParticipant()); |
| 236 |
|
if ($group === null) { |
| 237 |
|
$this->logger->info('No group found for acl rule ' . $acl->getId()); |
| 238 |
|
continue; |
| 239 |
|
} |
| 240 |
|
foreach ($group->getUsers() as $user) { |
| 241 |
|
$users[$user->getUID()] = new User($user); |
| 242 |
|
} |
| 243 |
|
} |
| 244 |
|
} |
| 245 |
|
$this->users[(string) $boardId] = $users; |
| 246 |
|
return $this->users[(string) $boardId]; |