SbloodyS commented on code in PR #16579:
URL:
https://github.com/apache/dolphinscheduler/pull/16579#discussion_r1756002092
##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/permission/ResourcePermissionCheckServiceImpl.java:
##########
@@ -267,6 +270,10 @@ public List<AuthorizationType> authorizationTypes() {
@Override
public boolean permissionCheck(int userId, String url, Logger logger) {
+ User user = processService.getUserById(userId);
+ if (user.getUserType() != UserType.ADMIN_USER) {
+ return false;
+ }
Review Comment:
Only environment permissions need to be controlled.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]