Fixed service permission checks failing without SELECT privilege on mysql.db for the servuce user.

This commit is contained in:
Markus Makela 2015-09-16 11:09:53 +03:00
parent 5aa882fc7e
commit fe400e7041

View File

@ -2428,9 +2428,8 @@ bool check_service_permissions(SERVICE* service)
{
if(mysql_errno(mysql) == ER_TABLEACCESS_DENIED_ERROR)
{
skygw_log_write(LE,"%s: Error: User '%s' is missing SELECT privileges on mysql.db table. MySQL error message: %s",
skygw_log_write(LE,"%s: Warning: User '%s' is missing SELECT privileges on mysql.db table. Database name will be ignored in authentication. MySQL error message: %s",
service->name,user,mysql_error(mysql));
rval = false;
}
else
{