Skip to content

Commit

Permalink
Fix a permission in alt api routing (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrydallacroce authored and fmizzell committed Jan 8, 2020
1 parent 9098f91 commit 649fbc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/custom/dkan_alt_api/dkan_alt_api.routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dkan_alt_api.1.metastore.schemas.id.items:
defaults:
{ _controller: '\Drupal\dkan_metastore\WebServiceApi::getAll'}
requirements:
_permission: 'metastore increased visibility'
_permission: 'get data through the alternate metastore api'
options:
_auth: ['basic_auth']

Expand All @@ -14,7 +14,7 @@ dkan_alt_api.1.metastore.schemas.id.items.id:
defaults:
{ _controller: '\Drupal\dkan_metastore\WebServiceApi::get'}
requirements:
_permission: 'metastore increased visibility'
_permission: 'get data through the alternate metastore api'
options:
_auth: ['basic_auth']

Expand Down

0 comments on commit 649fbc5

Please sign in to comment.