Skip to content

Commit

Permalink
fix(util-roles): add convenience 2nd level wildcards
Browse files Browse the repository at this point in the history
  • Loading branch information
emirotin committed Jun 9, 2018
1 parent 919e68c commit 704c4f5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/core/botpress-util-roles/src/resources.js
Expand Up @@ -29,6 +29,11 @@ const _RESOURCES = [
name: 'modules',
description: 'Bot extensions, such as NLU or HITL',
children: [
{
name: '*',
description: 'All modules',
operations: [r]
},
{
name: 'list',
description: 'The list of the installed modules',
Expand All @@ -45,6 +50,11 @@ const _RESOURCES = [
name: 'middleware',
description: 'Installed bot middlewares',
children: [
{
name: '*',
description: 'All middleware operations',
operations: [r, w]
},
{
name: 'list',
description: 'Get the list of the installed middlewares',
Expand All @@ -66,6 +76,11 @@ const _RESOURCES = [
name: 'bot',
description: 'Bot properties, such as content, flows etc.',
children: [
{
name: '*',
description: 'All bot properties',
operations: [r, w]
},
{
name: 'information',
description: 'General bot details',
Expand Down

0 comments on commit 704c4f5

Please sign in to comment.