Caideyipi commented on code in PR #16847:
URL: https://github.com/apache/iotdb/pull/16847#discussion_r2579724056


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/TableConfigTaskVisitor.java:
##########
@@ -1270,7 +1270,6 @@ protected IConfigTask visitStopPipe(StopPipe node, 
MPPQueryContext context) {
   @Override
   protected IConfigTask visitShowPipes(ShowPipes node, MPPQueryContext 
context) {
     context.setQueryType(QueryType.READ);
-    accessControl.checkUserGlobalSysPrivilege(context);
     return new ShowPipeTask(node, context.getSession().getUserName());
   }

Review Comment:
   On configNode's PipeTableResp
   
     public boolean isVisible4User(final String userName, final PipeStaticMeta 
meta) {
       try {
         return Objects.isNull(userName)
             || 
BasicAuthorizer.getInstance().getUser(userName).checkSysPrivilege(PrivilegeType.SYSTEM)
             || isVisible4SourceUser(userName, meta.getSourceParameters())
             || isVisible4SinkUser(userName, meta.getSinkParameters());
       } catch (final Exception e) {
         return false;
       }
     }



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