diff options
| author | Vlatka Pavisic | 2017-01-06 12:10:08 +0100 |
|---|---|---|
| committer | Vlatka Pavisic | 2017-01-06 12:10:08 +0100 |
| commit | 919f6c0a3e0cd428bd8343edc83de1935f409c0e (patch) | |
| tree | f541737a796c64f2b8ac1fcde262b06f24685e10 | |
| parent | 59ec6f639c76e839c81a350a12ac79dcaf56cd04 (diff) | |
| download | chouette-core-919f6c0a3e0cd428bd8343edc83de1935f409c0e.tar.bz2 | |
Refs #2263 : CalendarPolicy#share
| -rw-r--r-- | app/policies/calendar_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/calendar_policy.rb b/app/policies/calendar_policy.rb index 1c455f391..3b17679f1 100644 --- a/app/policies/calendar_policy.rb +++ b/app/policies/calendar_policy.rb @@ -18,7 +18,7 @@ class CalendarPolicy < ApplicationPolicy def destroy? ; modify? end def share? - user.organisation_id == 1 # FIXME + user.organisation.name == 'STIF' # FIXME end def modify? |
