SbloodyS commented on code in PR #10832:
URL: https://github.com/apache/dolphinscheduler/pull/10832#discussion_r923162364


##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProjectServiceImpl.java:
##########
@@ -206,11 +214,11 @@ public boolean hasProjectAndPerm(User loginUser, Project 
project, Map<String, Ob
     }
 
     @Override
-    public boolean hasProjectAndPerm(User loginUser, Project project, Result 
result) {
+    public boolean hasProjectAndPerm(User loginUser, Project project, Result 
result, String perm) {
         boolean checkResult = false;
         if (project == null) {
             putMsg(result, Status.PROJECT_NOT_FOUND, "");
-        } else if (!canOperatorPermissions(loginUser, new 
Object[]{project.getId()},AuthorizationType.PROJECTS,PROJECT)) {
+        } else if (!canOperatorPermissions(loginUser, new Object[] 
{project.getId()}, AuthorizationType.PROJECTS, perm)) {

Review Comment:
   Please use full name of `perm`



-- 
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]

Reply via email to