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


##########
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:
   Other SHOW statements are generally use the MAINTAIN privilege, I suggest 
referring to that here.



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