userService = $userService; } /** * @throws \Exception */ #[RequiresPermission(UsersPermissions::VIEW, global: true)] public function get(): Response { $this->tpl->assign('allUsers', $this->userService->getAllVisibleToUser()); $this->tpl->assign('admin', true); $this->tpl->assign('roles', Roles::getRoles()); return $this->tpl->display('users.showAll'); } public function post($params): Response { return $this->tpl->displayJson(['status' => 'Not Implemented']); } }