diff --git a/plugins/admin_mysql.sma b/plugins/admin_mysql.sma index 688aaf46..84a2f4b0 100755 --- a/plugins/admin_mysql.sma +++ b/plugins/admin_mysql.sma @@ -121,6 +121,9 @@ public adminSql() { szAccess[strlen(szAccess)] = 'y' g_aAccess[ g_aNum ] = read_flags( szAccess ) + if (!(g_aAccess[g_aNum] & ADMIN_USER) && !(g_aAccess[g_aNum] & ADMIN_ADMIN)) + g_aAccess[g_aNum] |= ADMIN_ADMIN + g_aFlags[ g_aNum ] = read_flags( szFlags ) ++g_aNum }