Skip to content

Commit

Permalink
d8core-5741: role for opportunity content type
Browse files Browse the repository at this point in the history
  • Loading branch information
buttonwillowsix committed Aug 10, 2024
1 parent ed3766d commit 67208c7
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 7 deletions.
17 changes: 10 additions & 7 deletions config/sync/samlauth.authentication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,19 @@ map_users_name: true
map_users_mail: true
map_users_roles:
administrator: administrator
stanford_faculty: stanford_faculty
stanford_staff: stanford_staff
stanford_student: stanford_student
anonymous: anonymous
contributor: contributor
site_manager: site_manager
site_editor: site_editor
opportunity_editor: opportunity_editor
decoupled_site_users: decoupled_site_users
layout_builder_user: layout_builder_user
site_builder: site_builder
site_developer: site_developer
layout_builder_user: layout_builder_user
decoupled_site_users: decoupled_site_users
site_editor: site_editor
site_manager: site_manager
stanford_faculty: stanford_faculty
stanford_staff: stanford_staff
stanford_student: stanford_student
su_site_embedder: su_site_embedder
create_users: true
sync_name: true
sync_mail: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
uuid: 51fe3b5b-b3d2-43d5-9cfb-f0aacefa51b9
langcode: en
status: true
dependencies:
config:
- user.role.opportunity_editor
module:
- user
id: user_add_role_action.opportunity_editor
label: 'Add the Opportunity Editor role to the selected user(s)'
type: user
plugin: user_add_role_action
configuration:
rid: opportunity_editor
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
uuid: 1c657bca-791f-400c-9c22-775d9fc71b39
langcode: en
status: true
dependencies:
config:
- user.role.opportunity_editor
module:
- user
id: user_remove_role_action.opportunity_editor
label: 'Remove the Opportunity Editor role from the selected user(s)'
type: user
plugin: user_remove_role_action
configuration:
rid: opportunity_editor
25 changes: 25 additions & 0 deletions config/sync/user.role.opportunity_editor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: 484eba31-f5a6-43f2-a22f-dce16500c1c8
langcode: en
status: true
dependencies:
config:
- node.type.stanford_opportunity
module:
- node
- role_delegation
- view_unpublished
id: opportunity_editor
label: 'Opportunity Editor'
weight: 3
is_admin: null
permissions:
- 'assign opportunity_editor role'
- 'create stanford_opportunity content'
- 'delete any stanford_opportunity content'
- 'delete own stanford_opportunity content'
- 'delete stanford_opportunity revisions'
- 'edit any stanford_opportunity content'
- 'edit own stanford_opportunity content'
- 'revert stanford_opportunity revisions'
- 'view any unpublished stanford_opportunity content'
- 'view stanford_opportunity revisions'

0 comments on commit 67208c7

Please sign in to comment.