This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new a1ad978960 [Bug]Fix select command denied for user for specified table
a1ad978960 is described below
commit a1ad978960c500e35e36717092cf61cc992e8383
Author: xy720 <[email protected]>
AuthorDate: Tue Jul 26 17:59:28 2022 +0800
[Bug]Fix select command denied for user for specified table
---
fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/PaloAuth.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/PaloAuth.java
b/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/PaloAuth.java
index 0cc2907f82..314375197b 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/PaloAuth.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/PaloAuth.java
@@ -465,7 +465,7 @@ public class PaloAuth implements Writable {
public boolean checkTblPriv(ConnectContext ctx, TableName tableName,
PrivPredicate wanted) {
Preconditions.checkState(tableName.isFullyQualified());
- return checkTblPriv(ctx, tableName.getCtl(), tableName.getDb(),
wanted);
+ return checkTblPriv(ctx, tableName.getDb(), tableName.getTbl(),
wanted);
}
public boolean checkTblPriv(UserIdentity currentUser, String ctl, String
db, String tbl, PrivPredicate wanted) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]