From 05f18a5854c714918ead177da6998dc9f09f33e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Thu, 30 Nov 2023 19:22:12 -0500 Subject: [PATCH] Contributors, editors, and managers on Drutopia sites can create and edit media (images, videos) https://www.drupal.org/project/drutopia_core/issues/3405384 --- config/user.role.contributor.yml | 19 +++++++++++++++++++ config/user.role.editor.yml | 21 +++++++++++++++++++++ config/user.role.manager.yml | 21 +++++++++++++++++++++ 3 files changed, 61 insertions(+) diff --git a/config/user.role.contributor.yml b/config/user.role.contributor.yml index df47dff..3c2ea41 100644 --- a/config/user.role.contributor.yml +++ b/config/user.role.contributor.yml @@ -3,6 +3,11 @@ langcode: en status: true dependencies: config: + - media.type.audio + - media.type.document + - media.type.image + - media.type.remote_video + - media.type.video - node.type.article - node.type.blog - node.type.page @@ -12,6 +17,7 @@ dependencies: module: - comment - contextual + - media - node - system - taxonomy @@ -24,23 +30,36 @@ is_admin: null permissions: - 'access contextual links' - 'create article content' + - 'create audio media' - 'create blog content' + - 'create document media' + - 'create image media' + - 'create media' - 'create page content' - 'create people content' + - 'create remote_video media' - 'create resource content' - 'create terms in tags' + - 'create video media' - 'delete own article content' - 'delete own blog content' - 'delete own page content' - 'delete own people content' - 'delete own resource content' - 'edit own article content' + - 'edit own audio media' - 'edit own blog content' - 'edit own comments' + - 'edit own document media' + - 'edit own image media' - 'edit own page content' - 'edit own people content' + - 'edit own remote_video media' - 'edit own resource content' + - 'edit own video media' - 'edit terms in tags' - 'skip comment approval' + - 'update media' - 'view own unpublished content' + - 'view own unpublished media' - 'view the administration theme' diff --git a/config/user.role.editor.yml b/config/user.role.editor.yml index 6b390da..8308af3 100644 --- a/config/user.role.editor.yml +++ b/config/user.role.editor.yml @@ -4,11 +4,17 @@ status: true dependencies: config: - filter.format.restricted_html + - media.type.audio + - media.type.document + - media.type.image + - media.type.remote_video + - media.type.video module: - comment - contextual - file - filter + - media - node - path - redirect @@ -27,6 +33,7 @@ permissions: - 'access content overview' - 'access contextual links' - 'access files overview' + - 'access media overview' - 'access site in maintenance mode' - 'access toolbar' - 'access tour' @@ -38,12 +45,26 @@ permissions: - 'administer users' - 'bypass node access' - 'bypass node access' + - 'create audio media' + - 'create document media' + - 'create image media' + - 'create media' + - 'create remote_video media' - 'create url aliases' - 'create url aliases' + - 'create video media' - 'delete all revisions' + - 'edit any audio media' + - 'edit any document media' + - 'edit any image media' + - 'edit any remote_video media' + - 'edit any video media' - 'revert all revisions' - 'skip comment approval' + - 'update any media' - 'use text format restricted_html' + - 'view all media revisions' - 'view all revisions' - 'view own unpublished content' + - 'view own unpublished media' - 'view the administration theme' diff --git a/config/user.role.manager.yml b/config/user.role.manager.yml index ecabff9..80e85dc 100644 --- a/config/user.role.manager.yml +++ b/config/user.role.manager.yml @@ -6,6 +6,11 @@ dependencies: - block_content.type.basic - block_content.type.slide - filter.format.restricted_html + - media.type.audio + - media.type.document + - media.type.image + - media.type.remote_video + - media.type.video module: - block - block_content @@ -15,6 +20,7 @@ dependencies: - contextual - file - filter + - media - menu_admin_per_menu - metatag - node @@ -41,6 +47,7 @@ permissions: - 'access content overview' - 'access contextual links' - 'access files overview' + - 'access media overview' - 'access site in maintenance mode' - 'access toolbar' - 'access tour' @@ -61,20 +68,34 @@ permissions: - 'assign manager role' - 'bypass node access' - 'bypass node access' + - 'create audio media' - 'create basic block content' + - 'create document media' + - 'create image media' + - 'create media' + - 'create remote_video media' - 'create slide block content' - 'create url aliases' - 'create url aliases' + - 'create video media' - 'delete all revisions' + - 'edit any audio media' - 'edit any basic block content' + - 'edit any document media' + - 'edit any image media' + - 'edit any remote_video media' - 'edit any slide block content' + - 'edit any video media' + - 'edit own audio media' - 'revert all revisions' - 'revert any basic block content revisions' - 'revert any slide block content revisions' - 'skip comment approval' + - 'update any media' - 'use text format restricted_html' - 'view all revisions' - 'view any basic block content history' - 'view any slide block content history' - 'view own unpublished content' + - 'view own unpublished media' - 'view the administration theme'