1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Added comment for database privilege checks.

This commit is contained in:
Vicențiu Ciorbaru
2013-10-18 06:34:18 -07:00
committed by Sergei Golubchik
parent f2ab661999
commit 8c7ca88a6c

View File

@ -2250,6 +2250,7 @@ ulong acl_get(const char *host, const char *ip,
db_access=acl_db->access;
if (acl_db->host.hostname)
goto exit; // Fully specified. Take it
/* the host table is not used for roles */
if ((!host || !host[0]) && !acl_db->host.hostname && find_acl_role(user))
goto exit;
break; /* purecov: tested */