From 3042aef82eb533bba30807e8d41f3c69381d3c2d Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Fri, 2 Apr 2004 20:58:12 +0000 Subject: [PATCH] Fixed access level bug --- plugins/admin_mysql.sma | 3 +++ 1 file changed, 3 insertions(+) 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 }