NIFI-3251:

- Ensuring read permissions to the ControllerService before attempting to check permissions to parent.

This closes #1483
This commit is contained in:
Matt Gilman 2017-02-08 09:35:35 -05:00 committed by Scott Aslan
parent 83ee7590a6
commit f0c6739a1f
1 changed files with 3 additions and 3 deletions

View File

@ -678,11 +678,11 @@ nf.ControllerServices = (function () {
if (dataContext.component.persistsState === true) {
markup += '<div title="View State" class="pointer view-state-controller-service fa fa-tasks" style="margin-top: 2px; margin-right: 3px;" ></div>';
}
}
if (dataContext.permissions.canWrite && canWriteControllerServiceParent(dataContext)) {
if (canWriteControllerServiceParent(dataContext)) {
markup += '<div class="pointer delete-controller-service fa fa-trash" title="Remove" style="margin-top: 2px; margin-right: 3px;" ></div>';
}
}
// allow policy configuration conditionally
if (nf.Canvas.isConfigurableAuthorizer() && nf.Common.canAccessTenants()) {