Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin: some tweaks #347

Merged
merged 17 commits into from
Sep 25, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions [admin]/admin/server/admin_sync.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,6 @@ function aSynchCoroutineFunc( type, data, typeOfTag, banSearchTag )
tableOut["map"] = getMapName()
tableOut["password"] = getServerPassword()
tableOut["fps"] = getFPSLimit()
elseif ( type == "rights" ) then
stoneage-mta marked this conversation as resolved.
Show resolved Hide resolved
for gi, group in ipairs ( aclListGroups() ) do
stoneage-mta marked this conversation as resolved.
Show resolved Hide resolved
for oi, object in ipairs ( aclGroupListObjects ( group ) ) do
if ( ( object == data ) or ( object == "user.*" ) ) then
for ai, acl in ipairs ( aclGroupListACL ( group ) ) do
for ri, right in ipairs ( aclListRights ( acl ) ) do
local access = aclGetRight ( acl, string )
stoneage-mta marked this conversation as resolved.
Show resolved Hide resolved
if ( access ) then table.insert ( tableOut, right ) end
stoneage-mta marked this conversation as resolved.
Show resolved Hide resolved
end
end
break
end
end
end
elseif ( type == "bansdirty" ) then
tableOut = nil
g_Bans = nil
Expand Down