Skip to content

Commit 362735d

Browse files
committed
fix potential access issue
1 parent 33318b0 commit 362735d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ReleaseController.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ public ReleaseDTO get(@PathVariable String env,
136136
if (release == null) {
137137
throw NotFoundException.releaseNotFound(releaseId);
138138
}
139+
if (userPermissionValidator.shouldHideConfigToCurrentUser(release.getAppId(), env,
140+
release.getClusterName(), release.getNamespaceName())) {
141+
throw new AccessDeniedException("Access is denied");
142+
}
139143
return release;
140144
}
141145

0 commit comments

Comments
 (0)