module UserRewards
  class HypeTrainPolicy < ApplicationPolicy
    def index?
      allowed?
    end

    def grant_rewards?
      allowed?
    end

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