|
@@ -67,6 +67,14 @@ function modpol.orgs:remove_pending_action(process_id, user, action)
|
|
|
modpol.ocutil.log("Could not remove pending action '" .. action .. "' from " .. user .. " in process #" .. process_id)
|
|
|
end
|
|
|
|
|
|
+-- =====================
|
|
|
+-- removes all pending actions for a given process id from all users
|
|
|
+function modpol.orgs:wipe_pending_actions(process_id)
|
|
|
+ for user in pairs(self.pending) do
|
|
|
+ self.pending[user][process_id] = nil
|
|
|
+ end
|
|
|
+ modpol.ocutil.log("Removed all pending actions for process #" .. process_id)
|
|
|
+end
|
|
|
|
|
|
-- ===========================
|
|
|
-- compares to requests to see if they are identical
|