Removed org.policies table; policies are now handled in the org.modules[module].config table.

This commit is contained in:
Nathan Schneider
2022-02-06 13:45:31 -07:00
parent b92272afa2
commit 8086b18879
3 changed files with 4 additions and 37 deletions

View File

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