Removed org.policies table; policies are now handled in the org.modules[module].config table.
This commit is contained in:
@ -20,15 +20,7 @@ function modpol.interactions.get_policy_string(
|
||||
local output = {}
|
||||
if modpol.util.num_pairs(this_module.config) > 0 then
|
||||
for k, v in pairs(this_module.config) do
|
||||
local this_policy = ""
|
||||
-- org policies
|
||||
if this_org.policies[module_slug]
|
||||
and this_org.policies[module_slug][k] then
|
||||
this_policy = k .. " - " ..
|
||||
tostring(this_org.policies[module_slug][k])
|
||||
else
|
||||
this_policy = k .. " - " .. tostring(v)
|
||||
end
|
||||
local this_policy = k .. " - " .. tostring(v)
|
||||
table.insert(output,this_policy)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user