Skip to content
Snippets Groups Projects
Commit 0ff4df7b authored by Viktor Holovachek's avatar Viktor Holovachek
Browse files

Issue #3474844 - Add permissions

parent c2f9ab76
No related branches found
No related tags found
1 merge request!6Issue #3474844 - Add permissions
cctags administer tags:
title: 'Manage cctags'
description: 'Allows a user to manage cctags.'
cctags access tags:
title: 'View cctags'
description: 'Allows a user to view cctags.'
......@@ -5,7 +5,7 @@ cctags.settings_form:
_description: 'Configure the Cctags.'
_form: \Drupal\cctags\Form\AdminSettingsForm
requirements:
_permission: 'administer permissions'
_permission: 'cctags administer tags'
cctags.setting_add_item_form:
path: /admin/config/content/cctags/add
......@@ -13,7 +13,7 @@ cctags.setting_add_item_form:
_title: 'Add cctags item'
_form: \Drupal\cctags\Form\CctagsAddItemForm
requirements:
_permission: 'administer permissions'
_permission: 'cctags administer tags'
cctags.setting_edit_item_form:
path: /admin/config/content/cctags/{cctid}/edit
......@@ -21,7 +21,7 @@ cctags.setting_edit_item_form:
_title: 'Edit cctags item'
_form: \Drupal\cctags\Form\CctagsEditItemForm
requirements:
_permission: 'administer permissions'
_permission: 'cctags administer tags'
cctags.setting_delete_item:
path: /admin/config/content/cctags/{cctid}/delete
......@@ -29,7 +29,7 @@ cctags.setting_delete_item:
_title: 'Delete Cctags Item'
_form: \Drupal\cctags\Form\CctagsDeleteItemForm
requirements:
_permission: 'administer permissions'
_permission: 'cctags administer tags'
route_callbacks:
- '\Drupal\cctags\Routing\CctagsRoutes::routes'
......@@ -30,7 +30,7 @@ class CctagsRoutes {
'page_vocname' => $item['page_vocname'],
],
[
'_permission' => 'access content',
'_permission' => 'cctags access tags',
]
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment