insert entries in person menu dynamically, according to acl

This commit is contained in:
2018-08-17 13:40:25 +02:00
parent 6e8982958e
commit b4c50bccb4
5 changed files with 105 additions and 10 deletions

View File

@@ -1,11 +1,6 @@
chill_activity_activity_list:
path: /{_locale}/person/{person_id}/activity/
defaults: { _controller: "ChillActivityBundle:Activity:list" }
options:
menus:
person:
order: 201
label: Activity list
chill_activity_activity_show:
path: /{_locale}/person/{person_id}/activity/{id}/show
@@ -14,11 +9,6 @@ chill_activity_activity_show:
chill_activity_activity_new:
path: /{_locale}/person/{person_id}/activity/new
defaults: { _controller: "ChillActivityBundle:Activity:new" }
options:
menus:
person:
order: 200
label: Add a new activity
chill_activity_activity_create:
path: /{_locale}/person/{person_id}/activity/create