Skip to content
Snippets Groups Projects
Commit fcdff29b authored by Kent Shelley's avatar Kent Shelley
Browse files

fix permissions to conversations

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