lib/socialcast/command_line/provision_user.rb in socialcast-1.3.12 vs lib/socialcast/command_line/provision_user.rb in socialcast-1.3.13

- old
+ new

@@ -50,9 +50,10 @@ begin File.open(output_file, 'r') do |file| request_params = {:file => file} request_params[:skip_emails] = 'true' if (@ldap_config.fetch('options', {})["skip_emails"] || @options[:skip_emails]) request_params[:test] = 'true' if (@ldap_config.fetch('options', {})["test"] || @options[:test]) + request_params[:add_only] = 'true' if (@ldap_config.fetch('options', {})['add_only'] || @options[:add_only]) resource.post request_params, :accept => :json end rescue RestClient::Unauthorized => e raise ProvisionError.new "Authenticated user either does not have administration privileges or the community is not configured to allow provisioning. Please contact Socialcast support to if you need help." if e.http_code == 401 end