aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies/stop_area_referential_policy.rb
blob: e370babf845ff7a1185c517bf4682ca86a77fab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class StopAreaReferentialPolicy < ApplicationPolicy
  class Scope < Scope
    def resolve
      scope
    end
  end

  def synchronize?; instance_permission("synchronize") end

  private
  def instance_permission permission
    user.has_permission?("stop_area_referentials.#{permission}")
  end
end