module Subscriptions
  class EmotePolicy < ApplicationPolicy
    def index?
      allowed?
    end

    def deactivate?
      allowed?
    end

    def edit?
      allowed?
    end

    def upload?
      allowed?
    end

    def update?
      allowed?
    end

    def update_emote_prefix?
      allowed?
    end

    def allowed?
      user.permitted? BeefCake::Permission.for(:ticket_products)
    end
  end
end
