mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 20:43:49 +00:00
add tests for authentication/authorization
Check the user which access to creation, modification, list, is authorized to see the user and have the permissions on activity.
This commit is contained in:
@@ -160,6 +160,8 @@ class ActivityController extends Controller
|
||||
$entity->setPerson($person);
|
||||
$entity->setDate(new \DateTime('now'));
|
||||
|
||||
$this->denyAccessUnlessGranted('CHILL_ACTIVITY_CREATE', $entity);
|
||||
|
||||
$form = $this->createCreateForm($entity, $person);
|
||||
|
||||
return $this->render('ChillActivityBundle:Activity:new.html.twig', array(
|
||||
|
Reference in New Issue
Block a user