Easiest way to have closed comments on a custom post type

Template Tags for the rescue

  1. Only logged in users:

    is_user_logged_in()
    
  2. Only logged in users that have a certain capability assigned to their role

    current_user_can($capability)
    
  3. Only logged in users that have a specific role assigned

    current_user_has_role($role)
    
  4. Only logged in users that have a specific capability assigned (to their role) on a specific blog

    current_user_can_for_blog($blog_id, $capability)