mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2025-04-17 06:10:52 +00:00
Fix for ACL system being loaded regardless of g_standalone setting
Caused by ACL command which requires the ACL system
This commit is contained in:
parent
6282c0e9bf
commit
30750d7062
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,6 @@ local db = require (wolfa_getLuaPath()..".db.db")
|
|||
|
||||
local players = require (wolfa_getLuaPath()..".players.players")
|
||||
|
||||
local events = require (wolfa_getLuaPath()..".util.events")
|
||||
local tables = require (wolfa_getLuaPath()..".util.tables")
|
||||
|
||||
local acl = {}
|
||||
|
@ -42,7 +41,6 @@ function acl.readPermissions()
|
|||
table.insert(data[role["level_id"]], role["role"])
|
||||
end
|
||||
end
|
||||
events.handle("onGameInit", acl.readPermissions)
|
||||
|
||||
function acl.clearCache()
|
||||
data = {}
|
||||
|
|
|
@ -113,6 +113,8 @@ auth.PERM_IMMUNE = "immune"
|
|||
function auth.onGameInit()
|
||||
if settings.get("g_standalone") == 1 then
|
||||
srv = require (wolfa_getLuaPath()..".auth.acl")
|
||||
|
||||
srv.readPermissions()
|
||||
else
|
||||
srv = require (wolfa_getLuaPath()..".auth.shrubbot")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue