Major improvements on policy configuration

- Bugfixes on change_policy
- Replaced _consent modules with configurable modules
This commit is contained in:
Nathan Schneider
2022-08-09 17:00:24 -06:00
parent 78ea89559f
commit 22a2048d5a
21 changed files with 253 additions and 379 deletions

View File

@ -3,12 +3,12 @@
--- Call modules
-- @function modpol.orgs.call_module
-- @param module_slug Same as module name
-- @param module_slug Same as module name (or false to run result)
-- @param intiator Initiator for module
-- @param config Config for module
-- @param result
function modpol.orgs:call_module(module_slug, initiator, config, result, parent_id)
if not module_slug then -- if false then simply run result
if not module_slug then -- if slug is false then simply run result
result()
return
end
@ -161,7 +161,7 @@ function modpol.orgs:has_pending_actions(user)
end
end
--- Interact a user with given process
--- Create user interaction with given process
-- @function modpol.orgs:interact
-- @param process_id
-- @param user