chg: [submenu fixes] Correctly show scope specific sub menues
- also added view my profile / edit my profile buttonspull/32/head
parent
5aaaa507fa
commit
f98e9821dc
|
@ -255,8 +255,6 @@ class ACLComponent extends Component
|
||||||
} else {
|
} else {
|
||||||
return $this->checkAccessInternal(Inflector::camelize($urlParts[1]), $urlParts[2], $soft);
|
return $this->checkAccessInternal(Inflector::camelize($urlParts[1]), $urlParts[2], $soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The check works like this:
|
// The check works like this:
|
||||||
|
@ -633,6 +631,21 @@ class ACLComponent extends Component
|
||||||
'label' => __('Home')
|
'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' => [
|
'Open' => [
|
||||||
|
|
Loading…
Reference in New Issue