@@ -30,6 +30,7 @@ use App\Repository\Query\ActivityQuery;
|
||||
*
|
||||
* @Route("/admin/activity")
|
||||
* @Security("has_role('ROLE_ADMIN')")
|
||||
* @Security("is_granted('IS_AUTHENTICATED_FULLY')")
|
||||
*
|
||||
* @author Kevin Papst <kevin@kevinpapst.de>
|
||||
*/
|
||||
|
||||
@@ -28,6 +28,7 @@ use App\Repository\Query\CustomerQuery;
|
||||
*
|
||||
* @Route("/admin/customer")
|
||||
* @Security("has_role('ROLE_ADMIN')")
|
||||
* @Security("is_granted('IS_AUTHENTICATED_FULLY')")
|
||||
*
|
||||
* @author Kevin Papst <kevin@kevinpapst.de>
|
||||
*/
|
||||
|
||||
@@ -29,6 +29,7 @@ use App\Repository\Query\ProjectQuery;
|
||||
*
|
||||
* @Route("/admin/project")
|
||||
* @Security("has_role('ROLE_ADMIN')")
|
||||
* @Security("is_granted('IS_AUTHENTICATED_FULLY')")
|
||||
*
|
||||
* @author Kevin Papst <kevin@kevinpapst.de>
|
||||
*/
|
||||
|
||||
@@ -20,7 +20,6 @@ use App\Entity\Timesheet;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
|
||||
use App\Form\TimesheetAdminForm;
|
||||
|
||||
/**
|
||||
@@ -28,6 +27,7 @@ use App\Form\TimesheetAdminForm;
|
||||
*
|
||||
* @Route("/team/timesheet")
|
||||
* @Security("has_role('ROLE_TEAMLEAD')")
|
||||
* @Security("is_granted('IS_AUTHENTICATED_FULLY')")
|
||||
*
|
||||
* @author Kevin Papst <kevin@kevinpapst.de>
|
||||
*/
|
||||
@@ -41,7 +41,6 @@ class TimesheetController extends AbstractController
|
||||
* @Route("/", defaults={"page": 1}, name="admin_timesheet")
|
||||
* @Route("/page/{page}", requirements={"page": "[1-9]\d*"}, name="admin_timesheet_paginated")
|
||||
* @Method("GET")
|
||||
* @Cache(smaxage="10")
|
||||
*
|
||||
* @param $page
|
||||
* @param Request $request
|
||||
|
||||
@@ -28,6 +28,7 @@ use Symfony\Component\HttpFoundation\Request;
|
||||
*
|
||||
* @Route("/admin/user")
|
||||
* @Security("has_role('ROLE_SUPER_ADMIN')")
|
||||
* @Security("is_granted('IS_AUTHENTICATED_FULLY')")
|
||||
*
|
||||
* @author Kevin Papst <kevin@kevinpapst.de>
|
||||
*/
|
||||
@@ -61,7 +62,6 @@ class UserController extends AbstractController
|
||||
* @Route("/", defaults={"page": 1}, name="admin_user")
|
||||
* @Route("/page/{page}", requirements={"page": "[1-9]\d*"}, name="admin_user_paginated")
|
||||
* @Method("GET")
|
||||
* @Security("is_granted('view_all', user)")
|
||||
*/
|
||||
public function indexAction($page, Request $request)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user