From 3f1d389aff6dbe7f52f2f03ca543088b4df01f55 Mon Sep 17 00:00:00 2001 From: itsankit-google Date: Thu, 5 Dec 2024 11:40:12 +0000 Subject: [PATCH] use application entity permission while listing pipelines --- .../cdap/internal/app/services/ApplicationLifecycleService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdap-app-fabric/src/main/java/io/cdap/cdap/internal/app/services/ApplicationLifecycleService.java b/cdap-app-fabric/src/main/java/io/cdap/cdap/internal/app/services/ApplicationLifecycleService.java index 59b5bca607c..f67673bf097 100644 --- a/cdap-app-fabric/src/main/java/io/cdap/cdap/internal/app/services/ApplicationLifecycleService.java +++ b/cdap-app-fabric/src/main/java/io/cdap/cdap/internal/app/services/ApplicationLifecycleService.java @@ -285,7 +285,7 @@ public boolean scanApplications(ScanApplicationsRequest request, if (namespace == null) { throw new IllegalStateException("Application scan request without namespace"); } - accessEnforcer.enforceOnParent(EntityType.DATASET, namespace, + accessEnforcer.enforceOnParent(EntityType.APPLICATION, namespace, authenticationContext.getPrincipal(), StandardPermission.LIST); try (