chg: [submenu fixes] Correctly show scope specific sub menues

- also added view my profile / edit my profile buttons
pull/32/head
iglocska 2020-09-29 15:27:09 +02:00
parent 5aaaa507fa
commit f98e9821dc
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 15 additions and 2 deletions

View File

@ -255,8 +255,6 @@ class ACLComponent extends Component
} else {
return $this->checkAccessInternal(Inflector::camelize($urlParts[1]), $urlParts[2], $soft);
}
}
// The check works like this:
@ -633,6 +631,21 @@ class ACLComponent extends Component
'label' => __('Home')
]
]
],
'Users' => [
__('My Profile'),
'children' => [
'View My Profile' => [
'url' => '/users/view',
'label' => __('View My Profile')
],
'Edit My Profile' => [
'url' => '/users/edit',
'label' => __('Edit My Profile'),
'actions' => ['delete', 'edit', 'view'],
'skipTopMenu' => 1
]
]
]
],
'Open' => [