From f0c6739a1f826813820b94455039692fd680d654 Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Wed, 8 Feb 2017 09:35:35 -0500 Subject: [PATCH] NIFI-3251: - Ensuring read permissions to the ControllerService before attempting to check permissions to parent. This closes #1483 --- .../src/main/webapp/js/nf/canvas/nf-controller-services.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-services.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-services.js index 942df0e616..460582c6ee 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-services.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-services.js @@ -678,10 +678,10 @@ nf.ControllerServices = (function () { if (dataContext.component.persistsState === true) { markup += '
'; } - } - if (dataContext.permissions.canWrite && canWriteControllerServiceParent(dataContext)) { - markup += '
'; + if (canWriteControllerServiceParent(dataContext)) { + markup += '
'; + } } // allow policy configuration conditionally