12345678910111213141516171819 |
- dofile('../modpol.lua');
- modpol.orgs.reset()
- test_org = modpol.instance:add_org('test_org')
- test_org:set_policy("add_member", nil, false);
- new_request = {
- user = "lukvmil",
- type = "add_member",
- params = {"lukvmil"}
- }
- request_id = test_org:make_request(new_request)
- process_id = test_org:create_process("consent", request_id)
- process = test_org.processes[process_id]
- process:approve("luke", true)
|