liquid_feedback_frontend

diff model/policy.lua @ 901:f3d6d08b0125

Added support for creating free timed issues in poll mode
author bsw
date Tue Aug 21 01:16:03 2012 +0200 (2012-08-21)
parents 46351752814f
children bbe07befa4e4
line diff
     1.1 --- a/model/policy.lua	Tue Aug 21 00:33:17 2012 +0200
     1.2 +++ b/model/policy.lua	Tue Aug 21 01:16:03 2012 +0200
     1.3 @@ -18,3 +18,10 @@
     1.4    selector:add_order_by("index")
     1.5    return selector
     1.6  end
     1.7 +
     1.8 +function Policy.object_get:free_timeable()
     1.9 +  if self.discussion_time == nil and self.verification_time == nil and self.voting_time == nil then
    1.10 +    return true
    1.11 +  end
    1.12 +  return false
    1.13 +end
    1.14 \ No newline at end of file

Impressum / About Us