Compare commits

..

No commits in common. "8825f5fc369dfca5f5dd19bd2777d329943e4fa0" and "481a2c2f4063340248b3ced5f25202f0f6f312c7" have entirely different histories.

4 changed files with 3 additions and 22 deletions

View File

@ -73,7 +73,7 @@ class AdminController extends AbstractController
$this->navLinks['user_list'] = 'nav-link text-white active bg-gradient-dark'; $this->navLinks['user_list'] = 'nav-link text-white active bg-gradient-dark';
return $this->render( return $this->render(
'internal/admin/users/list-users.html.twig', 'internal/admin/list-users.html.twig',
array_merge( array_merge(
$this->navLinks, $this->navLinks,
[ [
@ -126,7 +126,7 @@ class AdminController extends AbstractController
$this->navLinks['user_list'] = 'nav-link text-white active bg-gradient-dark'; $this->navLinks['user_list'] = 'nav-link text-white active bg-gradient-dark';
return $this->render( return $this->render(
'internal/admin/users/add-user.html.twig', 'internal/admin/add-user.html.twig',
array_merge( array_merge(
$this->navLinks, $this->navLinks,
[ [
@ -169,7 +169,7 @@ class AdminController extends AbstractController
} }
return $this->render( return $this->render(
'internal/admin/users/edit-user.html.twig', 'internal/admin/edit-user.html.twig',
array_merge( array_merge(
$this->navLinks, $this->navLinks,
[ [
@ -225,23 +225,4 @@ 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(),
]
)
);
}
} }