Compare commits
2 Commits
481a2c2f40
...
8825f5fc36
Author | SHA1 | Date | |
---|---|---|---|
8825f5fc36 | |||
4403f65b74 |
@ -73,7 +73,7 @@ class AdminController extends AbstractController
|
||||
$this->navLinks['user_list'] = 'nav-link text-white active bg-gradient-dark';
|
||||
|
||||
return $this->render(
|
||||
'internal/admin/list-users.html.twig',
|
||||
'internal/admin/users/list-users.html.twig',
|
||||
array_merge(
|
||||
$this->navLinks,
|
||||
[
|
||||
@ -126,7 +126,7 @@ class AdminController extends AbstractController
|
||||
$this->navLinks['user_list'] = 'nav-link text-white active bg-gradient-dark';
|
||||
|
||||
return $this->render(
|
||||
'internal/admin/add-user.html.twig',
|
||||
'internal/admin/users/add-user.html.twig',
|
||||
array_merge(
|
||||
$this->navLinks,
|
||||
[
|
||||
@ -169,7 +169,7 @@ class AdminController extends AbstractController
|
||||
}
|
||||
|
||||
return $this->render(
|
||||
'internal/admin/edit-user.html.twig',
|
||||
'internal/admin/users/edit-user.html.twig',
|
||||
array_merge(
|
||||
$this->navLinks,
|
||||
[
|
||||
@ -225,4 +225,23 @@ class AdminController extends AbstractController
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
#[Route('/list-cases', name: 'app_list_cases')]
|
||||
public function listCases(#[CurrentUser()] User $user): Response
|
||||
{
|
||||
$this->denyAccessUnlessGranted('ROLE_ADMIN');
|
||||
|
||||
return $this->render(
|
||||
'internal/cases/case-list.html.twig',
|
||||
array_merge(
|
||||
$this->navLinks,
|
||||
[
|
||||
'breadcrumbs' => [
|
||||
'List Cases'
|
||||
],
|
||||
'notifications' => $user->retrieveUnreadNotifications(),
|
||||
]
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user