[Bug]Fix select command denied for user for specified table

This commit is contained in:
xy720
2022-07-26 17:59:28 +08:00
committed by GitHub
parent 2c34b6cf2b
commit a1ad978960

View File

@ -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) {