diff options
author | Alexander Barkov <bar@mariadb.com> | 2020-02-28 21:59:01 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2020-03-10 23:49:47 +0400 |
commit | a1e330de5a37f88339f4a5b46231a41eb60f43d2 (patch) | |
tree | a1ce4b2187f728dcf94478562c8ea272608cb911 /plugin | |
parent | 91ba789aaf8feffb9ad377c740759b2359c5a094 (diff) | |
download | mariadb-git-a1e330de5a37f88339f4a5b46231a41eb60f43d2.tar.gz |
MDEV-21743 Split up SUPER privilege to smaller privileges
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/userstat/client_stats.cc | 2 | ||||
-rw-r--r-- | plugin/userstat/user_stats.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugin/userstat/client_stats.cc b/plugin/userstat/client_stats.cc index 2adeb23a385..72c71785606 100644 --- a/plugin/userstat/client_stats.cc +++ b/plugin/userstat/client_stats.cc @@ -78,7 +78,7 @@ static int send_user_stats(THD* thd, HASH *all_user_stats, TABLE *table) static int client_stats_fill(THD* thd, TABLE_LIST* tables, COND* cond) { - if (check_global_access(thd, SUPER_ACL | PROCESS_ACL, true)) + if (check_global_access(thd, PROCESS_ACL, true)) return 0; return send_user_stats(thd, &global_client_stats, tables->table); diff --git a/plugin/userstat/user_stats.cc b/plugin/userstat/user_stats.cc index 50809e0442a..de3d4e12fb1 100644 --- a/plugin/userstat/user_stats.cc +++ b/plugin/userstat/user_stats.cc @@ -34,7 +34,7 @@ static ST_FIELD_INFO user_stats_fields[]= static int user_stats_fill(THD* thd, TABLE_LIST* tables, COND* cond) { - if (check_global_access(thd, SUPER_ACL | PROCESS_ACL, true)) + if (check_global_access(thd, PROCESS_ACL, true)) return 0; return send_user_stats(thd, &global_user_stats, tables->table); |