improve activity

This commit is contained in:
2021-06-29 20:51:08 +02:00
parent 7dc70baf57
commit d9c1f52894
7 changed files with 60 additions and 29 deletions

View File

@@ -67,18 +67,6 @@ class MenuBuilder implements LocalMenuBuilderInterface
'order' => 201
]);
}
if ($this->authorizationHelper->userHasAccess($user, $person, $roleAdd)) {
$menu->addChild($this->translator->trans('Add a new activity'), [
'route' => 'chill_activity_activity_new',
'routeParameters' => [
'person_id' => $person->getId()
]
])
->setExtras([
'order' => 200
]);
}
}
public static function getMenuIds(): array