documentation
This commit is contained in:
parent
6de2be011f
commit
12623ee4a2
@ -53,8 +53,10 @@ end
|
|||||||
-- ========================
|
-- ========================
|
||||||
-- removes a pending action from the org's table
|
-- removes a pending action from the org's table
|
||||||
function modpol.orgs:remove_pending_action(process_id, user, action)
|
function modpol.orgs:remove_pending_action(process_id, user, action)
|
||||||
|
-- cautiously checks if pending action exists before removing it
|
||||||
if self.pending[user] then
|
if self.pending[user] then
|
||||||
if self.pending[user][process_id] then
|
if self.pending[user][process_id] then
|
||||||
|
-- searching for action to remove
|
||||||
for i, a in pairs(self.pending[user][process_id]) do
|
for i, a in pairs(self.pending[user][process_id]) do
|
||||||
if a == action then
|
if a == action then
|
||||||
self.pending[user][process_id][i] = nil
|
self.pending[user][process_id][i] = nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user