module Vods
  class ChannelPolicy < ApplicationPolicy
    def index?
      allowed?
    end

    def allowed?
      user.permitted?(BeefCake::Permission.for(:users)) || user.permitted?(BeefCake::Permission.for(:vods))
    end
  end
end
