diff options
Diffstat (limited to 'app/policies/time_table_policy.rb')
| -rw-r--r-- | app/policies/time_table_policy.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/app/policies/time_table_policy.rb b/app/policies/time_table_policy.rb index 1d14c646a..6ca02f451 100644 --- a/app/policies/time_table_policy.rb +++ b/app/policies/time_table_policy.rb @@ -10,11 +10,11 @@ class TimeTablePolicy < ApplicationPolicy    end    def edit? -    organisation_match?(via_referential: true) && user.has_permission?('time_tables.edit') +    organisation_match? && user.has_permission?('time_tables.edit')    end    def destroy? -    organisation_match?(via_referential: true) && user.has_permission?('time_tables.destroy') +    organisation_match? && user.has_permission?('time_tables.destroy')    end    def update?  ; edit? end  | 
