Skip to content

Commit

Permalink
[enhance](auth)node priv can show proc (#32751)
Browse files Browse the repository at this point in the history
  • Loading branch information
zddr authored and Doris-Extras committed Mar 26, 2024
1 parent 0122b8a commit 3658dfd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public ProcNodeInterface getNode() {

@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);
Expand Down

0 comments on commit 3658dfd

Please sign in to comment.