diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-30 16:43:32 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-30 16:43:32 +0300 |
| commit | 4967c087862e5c7c5009605000380d4451ce07ec (patch) | |
| tree | 950d2fb0204727ec26528a76553d4c5da3b3f845 /lib/api | |
| parent | 13f017f01b8363466576c1934b42a450bb1cc19a (diff) | |
| download | gitlab-ce-4967c087862e5c7c5009605000380d4451ce07ec.tar.gz | |
Fix signup and project visibility
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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 6085edab599..69553f16397 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -96,7 +96,7 @@ module API admin = attrs.delete(:admin) user.admin = admin unless admin.nil? - if user.update_attributes(attrs, as: :admin) + if user.update_attributes(attrs) present user, with: Entities::UserFull else not_found! |
