Commit fcdff29b authored by New Zeal's avatar New Zeal

fix permissions to conversations

parent 0b825eac
......@@ -3,4 +3,7 @@ Hide private messages tab
Disable to field in message
8.x-1.0-alpha3
Fix user page problem on install: https://www.drupal.org/node/2906376#comment-12245045
\ No newline at end of file
Fix user page problem on install: https://www.drupal.org/node/2906376#comment-12245045
8.x-1.0-alpha4
Enable permissions for conversation tab outside of admin
\ No newline at end of file
......@@ -7,6 +7,9 @@ dependencies:
- message_thread.template.conversation
module:
- message_thread
- user
_core:
default_config_hash: UqAY1HdOAH7JtNrXnK5OGCxXSIJ6uZhbgRMT488UMSw
id: conversations
label: Conversations
module: views
......@@ -23,8 +26,9 @@ display:
position: 0
display_options:
access:
type: none
options: { }
type: perm
options:
perm: 'create and receive conversation'
cache:
type: tag
options: { }
......@@ -288,12 +292,13 @@ display:
plugin_id: numeric
display_extenders: { }
cache_metadata:
max-age: 0
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- user.permissions
tags:
- 'config:field.storage.message_thread.field_thread_participants'
- 'config:field.storage.message_thread.field_thread_title'
......@@ -320,12 +325,13 @@ display:
description: ''
weight: 0
cache_metadata:
max-age: 0
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- user.permissions
tags:
- 'config:field.storage.message_thread.field_thread_participants'
- 'config:field.storage.message_thread.field_thread_title'
......@@ -56,8 +56,6 @@ message_thread.add_page:
# appears_on: # Should we define a route for converting MENU_LOCAL_ACTION.
# requirements:
# _entity_create_access: 'message_thread'
options:
_admin_route: TRUE
message_thread.add:
path: '/message-thread/add/{message_thread_template}'
......@@ -67,11 +65,6 @@ message_thread.add:
_title: 'Create Message Thread'
requirements:
_entity_create_access: 'message_thread:{message_thread_template}'
options:
_admin_route: TRUE
parameters:
message_thread_template:
with_config_overrides: FALSE
entity.message_thread.edit_form:
path: '/message-thread/{message_thread}/edit'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment