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

    def show?
      allowed?
    end

    def destroy?
      allowed?
    end

    def undestroy?
      allowed?
    end

    def download?
      allowed?
    end

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