diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-09-29 23:03:46 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-09-29 23:03:46 -0700 |
commit | 836104b41a557e8411d422c0dca7930e85b0de95 (patch) | |
tree | 5a45ebe5475209a098a6c8d818488ef35d18030e /lib/api/helpers.rb | |
parent | e48c6fab60d57b4af31f5b5d3e81ba09e4e68881 (diff) | |
parent | 5b657a65d4ec309be2cb7dfcacf85e98d59a4eb0 (diff) | |
download | gitlab-ce-836104b41a557e8411d422c0dca7930e85b0de95.tar.gz |
Merge pull request #5213 from bladealslayer/feature/user_api_extended
Extended User API to expose admin and can_create_group for user creation...
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index fdde6d5de6c..2b0c672c7fa 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -86,7 +86,7 @@ module API def attributes_for_keys(keys) attrs = {} keys.each do |key| - attrs[key] = params[key] if params[key].present? + attrs[key] = params[key] if params[key].present? or (params.has_key?(key) and params[key] == false) end attrs end |