Skip to content

Commit

Permalink
when user has SelectPriv, use can visit db.table
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhendongBai authored Dec 23, 2024
1 parent 294bdaf commit 103ac7f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ case class TiAuthorization private (parameters: Map[String, String], tiConf: TiC
def visible(db: String, table: String): Boolean = {
// Account who has ShowDBPriv is able to see all databases and tables regardless of revokes.
if (globalPrivs.get().contains(MySQLPriv.AllPriv) || globalPrivs
.get().contains(MySQLPriv.SelectPriv) || globalPrivs
.get()
.contains(MySQLPriv.ShowDBPriv)) {
return true
Expand Down

0 comments on commit 103ac7f

Please sign in to comment.