mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
flag y (ADMIN_ADMIN) is not set anymore
This commit is contained in:
parent
5a93f4a80b
commit
17c00abbde
@ -32,7 +32,8 @@
|
|||||||
* version.
|
* version.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USING_SQL 1
|
// comment for non-mysql version
|
||||||
|
#define USING_SQL
|
||||||
|
|
||||||
#include <amxmodx>
|
#include <amxmodx>
|
||||||
#include <amxmisc>
|
#include <amxmisc>
|
||||||
@ -178,12 +179,7 @@ public adminSql() {
|
|||||||
dbi_result(Res, "access", szAccess, 31)
|
dbi_result(Res, "access", szAccess, 31)
|
||||||
dbi_result(Res, "flags", szFlags, 31)
|
dbi_result(Res, "flags", szFlags, 31)
|
||||||
|
|
||||||
if ( (containi(szAccess,"z")==-1) && (containi(szAccess,"y")==-1) )
|
|
||||||
szAccess[strlen(szAccess)] = 'y'
|
|
||||||
|
|
||||||
g_aAccess[ g_aNum ] = read_flags( szAccess )
|
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_aFlags[ g_aNum ] = read_flags( szFlags )
|
||||||
++g_aNum
|
++g_aNum
|
||||||
|
Loading…
Reference in New Issue
Block a user