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:
Timo Smit 2018-02-16 11:33:47 +01:00
parent 6282c0e9bf
commit 30750d7062
2 changed files with 2 additions and 2 deletions

View file

@ -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 = {}

View file

@ -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