about summary refs log tree commit diff
path: root/app/policies/custom_emoji_policy.rb
blob: 0d73e9a15f4b3199467a4d88a5e5fb6df23b6864 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# frozen_string_literal: true

class CustomEmojiPolicy < ApplicationPolicy
  def index?
    staff?
  end

  def create?
    staff?
  end

  def update?
    staff?
  end

  def copy?
    staff?
  end

  def enable?
    staff?
  end

  def disable?
    staff?
  end

  def destroy?
    staff?
  end
end