mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
[TO REVERSE] enlève menu activités
This commit is contained in:
parent
2cf28b6c2d
commit
c26d342d30
@ -55,24 +55,26 @@ class PersonMenuBuilder implements LocalMenuBuilderInterface
|
|||||||
{
|
{
|
||||||
/* @var $person \Chill\PersonBundle\Entity\Person */
|
/* @var $person \Chill\PersonBundle\Entity\Person */
|
||||||
$person = $parameters['person'];
|
$person = $parameters['person'];
|
||||||
|
|
||||||
if ($this->authorizationChecker->isGranted(ActivityVoter::SEE, $person)) {
|
if (false) {
|
||||||
$menu->addChild(
|
if ($this->authorizationChecker->isGranted(ActivityVoter::SEE, $person)) {
|
||||||
$this->translator->trans('Activity list'), [
|
$menu->addChild(
|
||||||
'route' => 'chill_activity_activity_list',
|
$this->translator->trans('Activity list'), [
|
||||||
'routeParameters' => [ 'person_id' => $person->getId() ],
|
'route' => 'chill_activity_activity_list',
|
||||||
])
|
'routeParameters' => [ 'person_id' => $person->getId() ],
|
||||||
->setExtra('order', 201)
|
])
|
||||||
;
|
->setExtra('order', 201)
|
||||||
}
|
;
|
||||||
if ($this->authorizationChecker->isGranted(ActivityVoter::CREATE, $person)) {
|
}
|
||||||
$menu->addChild(
|
if ($this->authorizationChecker->isGranted(ActivityVoter::CREATE, $person)) {
|
||||||
$this->translator->trans('Add a new activity'), [
|
$menu->addChild(
|
||||||
'route' => 'chill_activity_activity_new',
|
$this->translator->trans('Add a new activity'), [
|
||||||
'routeParameters' => [ 'person_id' => $person->getId() ],
|
'route' => 'chill_activity_activity_new',
|
||||||
])
|
'routeParameters' => [ 'person_id' => $person->getId() ],
|
||||||
->setExtra('order', 200)
|
])
|
||||||
;
|
->setExtra('order', 200)
|
||||||
|
;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user