mirror of https://github.com/apache/nifi.git
NIFI-3251:
- Ensuring read permissions to the ControllerService before attempting to check permissions to parent. This closes #1483
This commit is contained in:
parent
83ee7590a6
commit
f0c6739a1f
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue