aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies/route_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/route_policy.rb')
-rw-r--r--app/policies/route_policy.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/policies/route_policy.rb b/app/policies/route_policy.rb
index 0f42b7f08..c4d048f2a 100644
--- a/app/policies/route_policy.rb
+++ b/app/policies/route_policy.rb
@@ -10,11 +10,11 @@ class RoutePolicy < ApplicationPolicy
end
def edit?
- organisation_match?(via_referential: true) && user.has_permission?('routes.edit')
+ organisation_match? && user.has_permission?('routes.edit')
end
def destroy?
- organisation_match?(via_referential: true) && user.has_permission?('routes.destroy')
+ organisation_match? && user.has_permission?('routes.destroy')
end
def update? ; edit? end