Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cctags
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
cctags
Commits
0ff4df7b
Commit
0ff4df7b
authored
4 months ago
by
Viktor Holovachek
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3474844
- Add permissions
parent
c2f9ab76
No related branches found
No related tags found
1 merge request
!6
Issue #3474844 - Add permissions
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cctags.permissions.yml
+6
-0
6 additions, 0 deletions
cctags.permissions.yml
cctags.routing.yml
+4
-4
4 additions, 4 deletions
cctags.routing.yml
src/Routing/CctagsRoutes.php
+1
-1
1 addition, 1 deletion
src/Routing/CctagsRoutes.php
with
11 additions
and
5 deletions
cctags.permissions.yml
0 → 100644
+
6
−
0
View file @
0ff4df7b
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.'
This diff is collapsed.
Click to expand it.
cctags.routing.yml
+
4
−
4
View file @
0ff4df7b
...
...
@@ -5,7 +5,7 @@ cctags.settings_form:
_description
:
'
Configure
the
Cctags.'
_form
:
\Drupal\cctags\Form\AdminSettingsForm
requirements
:
_permission
:
'
administer
permission
s'
_permission
:
'
cctags
administer
tag
s'
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
permission
s'
_permission
:
'
cctags
administer
tag
s'
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
permission
s'
_permission
:
'
cctags
administer
tag
s'
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
permission
s'
_permission
:
'
cctags
administer
tag
s'
route_callbacks
:
-
'
\Drupal\cctags\Routing\CctagsRoutes::routes'
This diff is collapsed.
Click to expand it.
src/Routing/CctagsRoutes.php
+
1
−
1
View file @
0ff4df7b
...
...
@@ -30,7 +30,7 @@ class CctagsRoutes {
'page_vocname'
=>
$item
[
'page_vocname'
],
],
[
'_permission'
=>
'
access content
'
,
'_permission'
=>
'
cctags access tags
'
,
]
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment