diff --git a/src/Controller/Config/MachineController.php b/src/Controller/Config/MachineController.php index 425dc3f..ed3445e 100644 --- a/src/Controller/Config/MachineController.php +++ b/src/Controller/Config/MachineController.php @@ -11,12 +11,17 @@ 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; /** * Controller for the configuration pages of machines */ #[Route('/Config/Machine')] +#[IsGranted('IS_AUTHENTICATED')] class MachineController extends AbstractController { + /** + * @var EntityManagerInterface The entity manager + */ private readonly EntityManagerInterface $entityManager; /** * @var MachineRepository The machine repository diff --git a/src/Controller/Config/MaterialController.php b/src/Controller/Config/MaterialController.php index c79f9b9..7e3d440 100644 --- a/src/Controller/Config/MaterialController.php +++ b/src/Controller/Config/MaterialController.php @@ -14,12 +14,17 @@ 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; /** * Controller for the configuration pages of material */ #[Route('/Config/Material')] +#[IsGranted('IS_AUTHENTICATED')] class MaterialController extends AbstractController { + /** + * @var EntityManagerInterface The entity manager + */ private readonly EntityManagerInterface $entityManager; /** * @var MaterialRepository The material repository diff --git a/src/Controller/Config/MaterialTypeController.php b/src/Controller/Config/MaterialTypeController.php index 085e89c..ffa0af3 100644 --- a/src/Controller/Config/MaterialTypeController.php +++ b/src/Controller/Config/MaterialTypeController.php @@ -11,12 +11,17 @@ 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; /** * Controller for the configuration pages of material types */ #[Route('/Config/MaterialType')] +#[IsGranted('IS_AUTHENTICATED')] class MaterialTypeController extends AbstractController { + /** + * @var EntityManagerInterface The entity manager + */ private readonly EntityManagerInterface $entityManager; /** * @var MaterialTypeRepository The material type repository