| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function loadRolesForUser(User $user): array |
||
| 24 | { |
||
| 25 | $domain = Domain::getCurrent($user->getDatabase()); |
||
| 26 | $userRoles = UserRole::getForUser($user->getId(), $user->getDatabase(), $domain->getId()); |
||
| 27 | |||
| 28 | return array_map(fn(UserRole $r): string => $r->getRole(), $userRoles); |
||
| 29 | } |
||
| 30 | } |