Skip to content

Commit

Permalink
Merge pull request #325 from USEPA/IN-752
Browse files Browse the repository at this point in the history
add moderation to events
  • Loading branch information
johnrockweilercgi authored Jan 7, 2022
2 parents 6c2b289 + 1df970f commit 53e5b06
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/sync/user.role.authenticated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ permissions:
- 'skip comment approval'
- 'update media'
- 'use blizz_bulk_creator ajax autocomplete'
- 'use event_editorial transition create_new_draft'
- 'use event_editorial transition publish'
- 'use event_editorial transition restore_from_unpublished'
- 'use event_editorial transition unpublished'
- 'use moderation dashboard'
- 'use moderation sidebar'
- 'use text format rich_text'
Expand Down
3 changes: 3 additions & 0 deletions config/sync/user.role.system_editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ permissions:
- 'use editorial transition create_new_draft'
- 'use editorial transition publish'
- 'use editorial transition review'
- 'use event_editorial transition create_new_draft'
- 'use event_editorial transition publish'
- 'use event_editorial transition restore_from_unpublished'
- 'view any unpublished content'
- 'view field_group_contact_info'
- 'view field_meta_tags'
Expand Down
60 changes: 60 additions & 0 deletions config/sync/workflows.workflow.event_editorial.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
uuid: fb41c14f-cf0e-4ad8-986b-55bf7996126b
langcode: en
status: true
dependencies:
config:
- node.type.event
module:
- content_moderation
id: event_editorial
label: 'Event Editorial'
type: content_moderation
type_settings:
states:
draft:
label: Draft
published: false
default_revision: false
weight: 0
published:
label: Published
published: true
default_revision: true
weight: 1
unpublished:
published: false
default_revision: false
label: Unpublished
weight: 2
transitions:
create_new_draft:
label: 'Create New Draft'
to: draft
weight: 0
from:
- draft
- published
publish:
label: Publish
to: published
weight: 1
from:
- draft
- published
- unpublished
restore_from_unpublished:
label: 'Restore from unpublished'
from:
- unpublished
to: draft
weight: 2
unpublished:
label: Unpublished
from:
- published
to: unpublished
weight: 3
entity_types:
node:
- event
default_moderation_state: draft

0 comments on commit 53e5b06

Please sign in to comment.