Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom content type grant #23

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ URL: `\<site\>/api/rest/v1/force\_run?\_format=json`
```
URL: `\<site\>/api/rest/v1/login?\_format=json`

- Use this to test your authorization data
- Use this to test your authorization data, at success it will return some basic account info
- The following headers are needed for the request to be accepted:
- Content-Type: application/json
- Authorization: <the username+password encoded>
Expand Down
14 changes: 14 additions & 0 deletions config/prod/system.action.user_add_role_action.qas_sub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
uuid: 965a166e-d258-419c-a2e0-97ccf48d98c3
langcode: en
status: true
dependencies:
config:
- user.role.qas_sub
module:
- user
id: user_add_role_action.qas_sub
label: 'Add the Subscriber role to the selected users'
type: user
plugin: user_add_role_action
configuration:
rid: qas_sub
14 changes: 14 additions & 0 deletions config/prod/system.action.user_remove_role_action.qas_sub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
uuid: ffe7f1ce-1042-4d9c-a738-feab3af06836
langcode: en
status: true
dependencies:
config:
- user.role.qas_sub
module:
- user
id: user_remove_role_action.qas_sub
label: 'Remove the Subscriber role from the selected users'
type: user
plugin: user_remove_role_action
configuration:
rid: qas_sub
27 changes: 27 additions & 0 deletions config/prod/user.role.qas_sub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
uuid: 848c223c-401d-405b-baf4-621406655d88
langcode: en
status: true
dependencies: { }
id: qas_sub
label: Subscriber
weight: -6
is_admin: null
permissions:
- 'access qashot test overview'
- 'access qashot test overview via rest'
- 'add qashot test entities'
- 'add qashot test entities via rest'
- 'delete own qashot test entities'
- 'delete qashot test entities via rest'
- 'edit own qashot test entities'
- 'edit qashot test entities via rest'
- 'restful delete entity:qa_shot_test'
- 'restful get entity:qa_shot_test'
- 'restful patch entity:qa_shot_test'
- 'restful post entity:qa_shot_test'
- 'run own qashot test entities'
- 'view own published qashot test entities'
- 'view own unpublished content'
- 'view own unpublished qashot test entities'
- 'view published qashot test entities via rest'
- 'view unpublished qashot test entities via rest'
11 changes: 11 additions & 0 deletions config/prod/user.role.rest_api_user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ permissions:
- 'add qashot test entities via rest'
- 'create qashot_test content'
- 'delete all revisions'
- 'delete any qashot test entities'
- 'delete any qashot_test content'
- 'delete own qashot test entities'
- 'delete own qashot_test content'
- 'delete qashot test entities'
- 'delete qashot test entities via rest'
- 'delete qashot_test revisions'
- 'edit any qashot test entities'
- 'edit any qashot_test content'
- 'edit own qashot test entities'
- 'edit own qashot_test content'
- 'edit qashot test entities'
- 'edit qashot test entities via rest'
Expand All @@ -33,10 +37,17 @@ permissions:
- 'restful post entity:qa_shot_test:node'
- 'revert all revisions'
- 'revert qashot_test revisions'
- 'run any qashot test entities'
- 'run own qashot test entities'
- 'view all revisions'
- 'view any published qashot test entities'
- 'view any unpublished qashot test entities'
- 'view own published qashot test entities'
- 'view own unpublished content'
- 'view own unpublished qashot test entities'
- 'view published qashot test entities'
- 'view published qashot test entities via rest'
- 'view qa_shot debug data'
- 'view qashot_test revisions'
- 'view unpublished qashot test entities'
- 'view unpublished qashot test entities via rest'
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Schema for the views plugins of the QAShot module.

views.filter.qa_shot_test_access:
type: views_filter
label: 'QAShot test access'

views.filter.qa_shot_test_status:
type: views_filter
label: 'QAShot test status'

views.filter_value.qa_shot_test_access:
type: string
label: 'Access'

views.filter_value.qa_shot_test_status:
type: boolean
label: 'Status'
Loading