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

  def create?
    user.has_permission?('exports.create')
  end

  def update?
    user.has_permission?('exports.update')
  end
end