zhongjiajie commented on PR #10884:
URL: 
https://github.com/apache/dolphinscheduler/pull/10884#issuecomment-1180248652

   I am not sure where is the best way to add the code, so I put it in the 
`ResourcePermissionCheckServiceImpl`
   
   I find out that in the workgroup, we use user type to determine whether we 
should query all objects in  `WorkerGroupServiceImpl` 
https://github.com/apache/dolphinscheduler/blob/b7fbf6c4adc732a621c52abdceffc82fc9fd1672/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/WorkerGroupServiceImpl.java#L245-L250.
   
   But in the queue, we query all objects in 
`ResourcePermissionCheckServiceImpl` 
https://github.com/apache/dolphinscheduler/blob/4bfd9e1e2fb4bcee44fbca3ca673fa46815d03fb/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/permission/ResourcePermissionCheckServiceImpl.java#L171-L175


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