liyuheng55555 commented on code in PR #15892:
URL: https://github.com/apache/iotdb/pull/15892#discussion_r2204474822


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/TableConfigTaskVisitor.java:
##########
@@ -453,6 +455,14 @@ protected IConfigTask visitShowAINodes(
     return new ShowAINodesTask();
   }
 
+  @Override
+  protected IConfigTask visitShowProcedures(
+      final ShowProcedures showProceduresStatement, final MPPQueryContext 
context) {
+    context.setQueryType(QueryType.READ);
+    accessControl.checkUserIsAdmin(context.getSession().getUserName());
+    return new ShowProcedureTask();
+  }

Review Comment:
   Besides, the privilege control of new SQL needs to add IT, take a look at 
the function `testClusterManagementSql`



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