modules/bcf/lib/open_project/bcf/bcf_xml/importer.rb
def treat_unknown_mails(options)
      if treat_unknown_mails?(options)
        raise StandardError.new 'For inviting new users you need admin privileges.' unless User.current.admin?
        raise StandardError.new 'Enterprise Edition user limit reached.' unless enterprise_allow_new_users?

        unknown_mails.each do |mail|
          add_unknown_mail(mail, options)
        end
      end
    end
##
# Invite all unknown email addresses and add them
Invite all unknown email addresses and add them
Invite all unknown email addresses and add them
def treat_unknown_mails(options)
      if treat_unknown_mails?(options)
        raise StandardError.new 'For inviting new users you need admin privileges.' unless User.current.admin?
        raise StandardError.new 'Enterprise Edition user limit reached.' unless enterprise_allow_new_users?
        unknown_mails.each do |mail|
          add_unknown_mail(mail, options)
        end
      end
    end
def treat_unknown_mails ( options ) if treat_unknown_mails? ( options ) raise StandardError . new 'For inviting new users you need admin privileges.' unless User . current . admin? raise StandardError . new 'Enterprise Edition user limit reached.' unless enterprise_allow_new_users? unknown_mails . each do | mail | add_unknown_mail ( mail , options ) end end end
Invite all unknown email addresses and add them
Invite all unknown email addresses and add them
options