mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-5215 Granted to PUBLIC
This commit is contained in:
committed by
Sergei Golubchik
parent
594bed9b42
commit
b0325bd6d6
@@ -6760,10 +6760,7 @@ check_access(THD *thd, privilege_t want_access,
|
||||
{
|
||||
if (db && (!thd->db.str || db_is_pattern || strcmp(db, thd->db.str)))
|
||||
{
|
||||
db_access= acl_get(sctx->host, sctx->ip, sctx->priv_user, db,
|
||||
db_is_pattern);
|
||||
if (sctx->priv_role[0])
|
||||
db_access|= acl_get("", "", sctx->priv_role, db, db_is_pattern);
|
||||
db_access= acl_get_all3(sctx, db, db_is_pattern);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6808,14 +6805,7 @@ check_access(THD *thd, privilege_t want_access,
|
||||
}
|
||||
|
||||
if (db && (!thd->db.str || db_is_pattern || strcmp(db, thd->db.str)))
|
||||
{
|
||||
db_access= acl_get(sctx->host, sctx->ip, sctx->priv_user, db,
|
||||
db_is_pattern);
|
||||
if (sctx->priv_role[0])
|
||||
{
|
||||
db_access|= acl_get("", "", sctx->priv_role, db, db_is_pattern);
|
||||
}
|
||||
}
|
||||
db_access= acl_get_all3(sctx, db, db_is_pattern);
|
||||
else
|
||||
db_access= sctx->db_access;
|
||||
DBUG_PRINT("info",("db_access: %llx want_access: %llx",
|
||||
|
Reference in New Issue
Block a user