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 (