diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-04-13 15:37:17 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-04-18 11:12:28 -0300 |
commit | 2366768d3b28ea70c91fc49c471e66152650d442 (patch) | |
tree | f1cf6fdba0bd96f3f128bf949063251b27ee0f65 /lib/api/users.rb | |
parent | 820c08cefd78e593e94012061be29000d523ffd0 (diff) | |
download | gitlab-ce-2366768d3b28ea70c91fc49c471e66152650d442.tar.gz |
Add changelog entry
Diffstat (limited to 'lib/api/users.rb')
-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 315268fc0ca..ea6fa2dc8a8 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -40,7 +40,7 @@ module API get ":id" do @user = User.find(params[:id]) - if current_user.present? && current_user.is_admin? + if current_user && current_user.is_admin? present @user, with: Entities::UserFull elsif can?(current_user, :read_user, @user) present @user, with: Entities::User |