feat: feedback details for role 'administrative'

This commit is contained in:
Björn Fromme
2024-03-13 10:29:51 +01:00
parent 7e5b0e66c4
commit 712122f10a
4 changed files with 56 additions and 1 deletions
@@ -0,0 +1,22 @@
<?php
namespace App\Controller\Administrative\Feedback;
use App\Entity\Feedback;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
class DetailController extends AbstractController
{
#[Route('/administrative/feedback/detail/{uuid}', name: 'app_administrative_feedback_detail')]
#[IsGranted('ROLE_ADMINISTRATIVE')]
public function index(Feedback $feedback): Response
{
return $this->render('administrative/feedback/modal_info.html.twig', [
'feedback' => $feedback,
]);
}
}
@@ -8,6 +8,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
class IndexController extends AbstractController
{
@@ -18,6 +19,7 @@ class IndexController extends AbstractController
}
#[Route('/administrative/feedback', name: 'app_administrative_feedback_index')]
#[IsGranted('ROLE_ADMINISTRATIVE')]
public function index(Request $request): Response
{
$query = $this