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

class TagPolicy < ApplicationPolicy
  def index?
    role.can?(:manage_taxonomies)
  end

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

  def update?
    role.can?(:manage_taxonomies)
  end

  def review?
    role.can?(:manage_taxonomies)
  end
end