Comparison

util/pubsub.lua @ 9195:b6ffd4f951b9

util.pubsub: Add comment to clarify return values
author Matthew Wild <mwild1@gmail.com>
date Sat, 18 Aug 2018 13:23:52 +0100
parent 9179:82fad995a149
child 9200:249d90ff992e
comparison
equal deleted inserted replaced
9194:11a0b32fef24 9195:b6ffd4f951b9
580 -- Access checking 580 -- Access checking
581 if not self:may(node, actor, "get_items") then 581 if not self:may(node, actor, "get_items") then
582 return false, "forbidden"; 582 return false, "forbidden";
583 end 583 end
584 -- 584 --
585 -- Returns success, id, item
585 return true, self.data[node]:tail(); 586 return true, self.data[node]:tail();
586 end 587 end
587 588
588 function service:get_nodes(actor) 589 function service:get_nodes(actor)
589 -- Access checking 590 -- Access checking