chg: [aclcomponent] Added ACL entry
parent
ded1ae64e7
commit
99c857d586
|
@ -127,6 +127,10 @@ class AppController extends Controller
|
||||||
$this->request->getParam('prefix');
|
$this->request->getParam('prefix');
|
||||||
$this->set('darkMode', !empty(Configure::read('Cerebrate')['ui.dark']));
|
$this->set('darkMode', !empty(Configure::read('Cerebrate')['ui.dark']));
|
||||||
$this->set('baseurl', Configure::read('App.fullBaseUrl'));
|
$this->set('baseurl', Configure::read('App.fullBaseUrl'));
|
||||||
|
|
||||||
|
if ($this->modelClass == 'Tags.Tags') {
|
||||||
|
$this->set('metaGroup', !empty($this->isAdmin) ? 'Administration' : 'Cerebrate');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function authApiUser(): void
|
private function authApiUser(): void
|
||||||
|
|
|
@ -747,6 +747,30 @@ class ACLComponent extends Component
|
||||||
'label' => __('List Outbox Processors'),
|
'label' => __('List Outbox Processors'),
|
||||||
'skipTopMenu' => 1
|
'skipTopMenu' => 1
|
||||||
]
|
]
|
||||||
|
],
|
||||||
|
'skipTopMenu' => true,
|
||||||
|
],
|
||||||
|
'Tags' => [
|
||||||
|
'label' => __('Tags'),
|
||||||
|
'url' => '/tags/index',
|
||||||
|
'children' => [
|
||||||
|
'index' => [
|
||||||
|
'url' => '/tags/index',
|
||||||
|
'label' => __('List Tags'),
|
||||||
|
],
|
||||||
|
'view' => [
|
||||||
|
'url' => '/tags/view/{{id}}',
|
||||||
|
'label' => __('View Tags'),
|
||||||
|
'actions' => ['delete', 'edit', 'view'],
|
||||||
|
'skipTopMenu' => true,
|
||||||
|
],
|
||||||
|
'delete' => [
|
||||||
|
'url' => '/tags/delete/{{id}}',
|
||||||
|
'label' => __('Delete Tag'),
|
||||||
|
'actions' => ['delete', 'edit', 'view'],
|
||||||
|
'skipTopMenu' => true,
|
||||||
|
'popup' => 1
|
||||||
|
],
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'MetaTemplates' => [
|
'MetaTemplates' => [
|
||||||
|
|
Loading…
Reference in New Issue