This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 3658dfd50000a8806e4c68b39b0af22c641b68c6
Author: zhangdong <[email protected]>
AuthorDate: Tue Mar 26 11:13:26 2024 +0800

    [enhance](auth)node priv can show proc (#32751)
---
 fe/fe-core/src/main/java/org/apache/doris/analysis/ShowProcStmt.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowProcStmt.java 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowProcStmt.java
index 239d41e1a93..bc7c70cdc79 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowProcStmt.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowProcStmt.java
@@ -45,7 +45,8 @@ public class ShowProcStmt extends ShowStmt {
 
     @Override
     public void analyze(Analyzer analyzer) throws AnalysisException {
-        if 
(!Env.getCurrentEnv().getAccessManager().checkGlobalPriv(ConnectContext.get(), 
PrivPredicate.ADMIN)) {
+        if (!Env.getCurrentEnv().getAccessManager()
+                .checkGlobalPriv(ConnectContext.get(), 
PrivPredicate.ADMIN_OR_NODE)) {
             
ErrorReport.reportAnalysisException(ErrorCode.ERR_SPECIFIC_ACCESS_DENIED_ERROR, 
"ADMIN");
         }
         node = ProcService.getInstance().open(path);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to