From 7e0cd47ab44389fb9933345407ad2c2cd2a579b6 Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 11 Apr 2016 14:10:38 -0700 Subject: allow monitor auth to create users even if invites are normally required. --- app/controllers/v1/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/v1/users_controller.rb b/app/controllers/v1/users_controller.rb index 8296eb0..6640d10 100644 --- a/app/controllers/v1/users_controller.rb +++ b/app/controllers/v1/users_controller.rb @@ -63,7 +63,7 @@ module V1 # tester auth can only create test users. def create_test_account if User::is_test?(params[:user][:login]) - @user = Account.create(params[:user]) + @user = Account.create(params[:user], :invite_required => false) respond_with @user else head :forbidden -- cgit v1.2.3