| @@ -134,9 +134,9 @@ | ||
| 134 | 134 | || isset($rolesMap['administrator']) === true |
| 135 | 135 | ); |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | - public function userIsAdmin(int|string|null $userId): bool | |
| 138 | + public function userIsAdmin(int|string $userId): bool | |
| 139 | 139 | { |
| 140 | 140 | $user = $this->objectHandler->getUser($userId); |
| 141 | 141 | $roles = $this->getUserRole($user); |
| 142 | 142 | $rolesMap = array_flip($roles); |