fix: add missing access checks
This commit is contained in:
@@ -8,6 +8,7 @@ use App\Repository\UploadRepository;
|
||||
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 IndexController extends AbstractController
|
||||
{
|
||||
@@ -18,6 +19,7 @@ class IndexController extends AbstractController
|
||||
}
|
||||
|
||||
#[Route('/management', name: 'app_manager_index')]
|
||||
#[IsGranted('ROLE_MANAGER')]
|
||||
public function index(): Response
|
||||
{
|
||||
$dispositions = $this->dispositionRepository->getNew();
|
||||
|
||||
Reference in New Issue
Block a user