|
@@ -48,6 +48,8 @@ function init_consent(policy) {
|
|
|
self.member_count = modpol.orgs.get_org(self.org_id):get_member_count()
|
|
|
|
|
|
if policy.duration then
|
|
|
+ -- mintest.after(time, func, ...args)
|
|
|
+ -- should override modpol callback function
|
|
|
register_callback(self.start_time + policy.duration)
|
|
|
end
|
|
|
|
|
@@ -65,7 +67,7 @@ function update_consent(user, approve) {
|
|
|
table.insert(yes_votes, user)
|
|
|
else
|
|
|
table.insert(no_votes, user)
|
|
|
-
|
|
|
+
|
|
|
if not duration then
|
|
|
eval_consent()
|
|
|
end
|