chg: [aclcomponent] Added ACL entry

pull/72/head
mokaddem 2021-09-03 09:49:20 +02:00
parent ded1ae64e7
commit 99c857d586
2 changed files with 28 additions and 0 deletions

View File

@ -127,6 +127,10 @@ class AppController extends Controller
$this->request->getParam('prefix');
$this->set('darkMode', !empty(Configure::read('Cerebrate')['ui.dark']));
$this->set('baseurl', Configure::read('App.fullBaseUrl'));
if ($this->modelClass == 'Tags.Tags') {
$this->set('metaGroup', !empty($this->isAdmin) ? 'Administration' : 'Cerebrate');
}
}
private function authApiUser(): void

View File

@ -747,6 +747,30 @@ class ACLComponent extends Component
'label' => __('List Outbox Processors'),
'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' => [