Skip to content

Commit 6d919ea

Browse files
author
Lee Hicks
committed
DF-1293 #comment Fixed role service access components when swagger def is supplied
1 parent da95431 commit 6d919ea

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55
## [Unreleased]
66
### Fixed
77
- DF-1287 Fixed NodeJS (and Python) script execution for large script. Made script size configurable
8+
- DF-1293 Fixed role service access components when swagger def is supplied
89

910
## [0.8.0] - 2017-12-28
1011
### Added

src/Services/Script.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ public function getAccessList()
162162
$paths = array_keys((array)array_get($this->getApiDoc(), 'paths'));
163163
foreach ($paths as $path) {
164164
// drop service from path
165-
if (!empty($path = ltrim(strstr(ltrim($path, '/'), '/'), '/'))) {
165+
if (!empty($path = ltrim($path, '/'))) {
166166
$list[] = $path;
167-
$path = explode("/", $path);
167+
$path = explode('/', $path);
168168
end($path);
169169
while ($level = prev($path)) {
170170
$list[] = $level . '/*';

0 commit comments

Comments
 (0)