diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-23 22:55:38 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-23 22:55:38 +0200 |
| commit | 0693215c30d597802b134f7c663aa5deba6faa00 (patch) | |
| tree | 7aab7f7ba2e92cc65774ff9d02225015f3cbccb9 /lib/api | |
| parent | 0e1635a68a2a3f9c74ca52f2b5c19d63428faf2c (diff) | |
| download | gitlab-ce-0693215c30d597802b134f7c663aa5deba6faa00.tar.gz | |
Fixed spinach and tests. Build should pass now
Diffstat (limited to 'lib/api')
| -rw-r--r-- | lib/api/users.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb index 57e0aa108cf..cad99fd9f7b 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -38,7 +38,7 @@ module Gitlab # POST /users post do authenticated_as_admin! - attrs = attributes_for_keys [:email, :name, :password, :skype, :linkedin, :twitter, :projects_limit] + attrs = attributes_for_keys [:email, :name, :password, :skype, :linkedin, :twitter, :projects_limit, :username] user = User.new attrs, as: :admin if user.save present user, with: Entities::User |
