module Twitch
  class ReservationPolicy < ApplicationPolicy
    def update?
      allowed?
    end

    def index?
      allowed?
    end

    def show?
      allowed?
    end

    def new?
      allowed?
    end

    def create?
      allowed?
    end

    def destroy?
      allowed?
    end

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