Skip to content

Commit

Permalink
fix(api): Support legacyFallback for BUILD_SERVICE (spinnaker#385)
Browse files Browse the repository at this point in the history
When `service.fiat.legacyFallback` is `true`, this will implicitly allow
access to all build services in the event that `fiat` is unavailable.
  • Loading branch information
ajordens authored and dibyom committed Apr 26, 2019
1 parent 24d6248 commit 7e285ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ private boolean permissionContains(UserPermission.View permission,
.stream()
.anyMatch(view -> view.getName().equalsIgnoreCase(resourceName));
case BUILD_SERVICE:
return containsAuth.apply(permission.getBuildServices());
return permission.isLegacyFallback() || containsAuth.apply(permission.getBuildServices());
default:
return false;
}
Expand Down

0 comments on commit 7e285ec

Please sign in to comment.