diff options
| author | Robert | 2017-07-10 18:14:56 +0200 |
|---|---|---|
| committer | Robert | 2017-07-10 18:14:56 +0200 |
| commit | 4c7f03108350bf540b6346f864b1ba022119507f (patch) | |
| tree | 0bf017bf3560e3b62b668068f2531037c73d532d /app/policies | |
| parent | 64e16e9525961066a8d4f2770e8ccb8472a15956 (diff) | |
| download | chouette-core-4c7f03108350bf540b6346f864b1ba022119507f.tar.bz2 | |
hotfix
Diffstat (limited to 'app/policies')
| -rw-r--r-- | app/policies/calendar_policy.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/policies/calendar_policy.rb b/app/policies/calendar_policy.rb index d3c715d70..074c41d8d 100644 --- a/app/policies/calendar_policy.rb +++ b/app/policies/calendar_policy.rb @@ -6,10 +6,10 @@ class CalendarPolicy < ApplicationPolicy end def create? - !archived? && organisation_match? && user.has_permission?('calendars.create') + !archived? && user.has_permission?('calendars.create') end def destroy? - !archived? && organisation_match? && user.has_permission?('calendars.destroy') + !archived? & organisation_match? && user.has_permission?('calendars.destroy') end def update? !archived? && organisation_match? && user.has_permission?('calendars.update') |
