aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcedricnjanga2017-07-12 14:27:38 +0200
committercedricnjanga2017-07-12 14:29:29 +0200
commit93fe7067883367f841b2d2702302efda8457ca7e (patch)
treee3df8439f55a5c535c10efbccb54d016b865b1c8
parent5683ed2be29d3112fec8c7018ccc766366aee4cc (diff)
downloadchouette-core-93fe7067883367f841b2d2702302efda8457ca7e.tar.bz2
Add month? method in timetable policy
-rw-r--r--app/policies/time_table_policy.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/policies/time_table_policy.rb b/app/policies/time_table_policy.rb
index c9f3a3ec6..92d3aef3e 100644
--- a/app/policies/time_table_policy.rb
+++ b/app/policies/time_table_policy.rb
@@ -25,4 +25,8 @@ class TimeTablePolicy < ApplicationPolicy
def duplicate?
!archived? && organisation_match? && create?
end
+
+ def month?
+ update?
+ end
end