Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
848e4def
Commit
848e4def
authored
4 years ago
by
Lily Yan
Committed by
Igor Biki
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4681 Add contact permissions to the content access list
parent
5c5b38e2
No related branches found
No related tags found
1 merge request
!68
Feature/istwcms 4681 istwcms 4682 l26yan add contact profile permissions to the list
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/UwPermissions/UwPermissions.php
+18
-0
18 additions, 0 deletions
src/UwPermissions/UwPermissions.php
uw_cfg_common.install
+15
-0
15 additions, 0 deletions
uw_cfg_common.install
with
33 additions
and
0 deletions
src/UwPermissions/UwPermissions.php
+
18
−
0
View file @
848e4def
...
@@ -71,6 +71,24 @@ class UwPermissions {
...
@@ -71,6 +71,24 @@ class UwPermissions {
),
),
],
],
// Contact permissions.
'Contact'
=>
[
'Use content type'
=>
UwPermissions
::
buildRolePermissionsListContentType
(
'uw_ct_contact'
),
'Create/edit group'
=>
UwPermissions
::
buildRolePermissionsListTaxonomyTerm
(
'uw_vocab_contact_group'
,
[
'create'
,
'edit'
]
),
'Delete group'
=>
UwPermissions
::
buildRolePermissionsListTaxonomyTerm
(
'uw_vocab_contact_group'
,
[
'delete'
]
),
],
// Catalog permissions.
// Catalog permissions.
'Catalog'
=>
[
'Catalog'
=>
[
'Use content type'
=>
'Use content type'
=>
...
...
This diff is collapsed.
Click to expand it.
uw_cfg_common.install
+
15
−
0
View file @
848e4def
...
@@ -28,6 +28,21 @@ function uw_cfg_common_install() {
...
@@ -28,6 +28,21 @@ function uw_cfg_common_install() {
'Site manager'
,
'Site manager'
,
],
],
],
],
'Contact'
=>
[
'Use content type'
=>
[
'Site manager'
,
'Content author'
,
'Content editor'
,
],
'Create/edit group'
=>
[
'Site manager'
,
'Content author'
,
'Content editor'
,
],
'Delete group'
=>
[
'Site manager'
,
],
],
'Catalog'
=>
[
'Catalog'
=>
[
'Use content type'
=>
[
'Use content type'
=>
[
'Site manager'
,
'Site manager'
,
...
...
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