Skip to content

Commit

Permalink
Fix for ACL system being loaded regardless of g_standalone setting
Browse files Browse the repository at this point in the history
Caused by ACL command which requires the ACL system
  • Loading branch information
Timo Smit committed Feb 16, 2018
1 parent 6282c0e commit 30750d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions luamods/wolfadmin/auth/acl.lua
Expand Up @@ -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 = {}
Expand All @@ -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 = {}
Expand Down
2 changes: 2 additions & 0 deletions luamods/wolfadmin/auth/auth.lua
Expand Up @@ -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
Expand Down

0 comments on commit 30750d7

Please sign in to comment.