about summary refs log tree commit diff
path: root/app/policies/report_policy.rb
blob: c9f7639bdd68d21796a3dbdc89474dd76deb1a8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class ReportPolicy < ApplicationPolicy
  def update?
    role.can?(:manage_reports)
  end

  def index?
    role.can?(:manage_reports)
  end

  def show?
    role.can?(:manage_reports)
  end
end