aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies/acces_point_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/acces_point_policy.rb')
-rw-r--r--app/policies/acces_point_policy.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/policies/acces_point_policy.rb b/app/policies/acces_point_policy.rb
index 904b7a242..4e017eae4 100644
--- a/app/policies/acces_point_policy.rb
+++ b/app/policies/acces_point_policy.rb
@@ -9,14 +9,11 @@ class AccessPointPolicy < ApplicationPolicy
user.has_permission?('access_points.create') # organisation match via referential is checked in the view
end
- def edit?
+ def update?
organisation_match? && user.has_permission?('access_points.edit')
end
def destroy?
organisation_match? && user.has_permission?('access_points.destroy')
end
-
- def update? ; edit? end
- def new? ; create? end
end