diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-09-25 18:40:24 +0200 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-09-27 11:33:55 +0200 |
commit | 585b1b3fca46cd7241701e5159a76501796ca091 (patch) | |
tree | 62c0061d686625ba88bd9baf1933df92f1f27dae /lib/api | |
parent | 0a94bdfa1473d7e876e3a34be75a205a64b5056a (diff) | |
download | gitlab-ce-585b1b3fca46cd7241701e5159a76501796ca091.tar.gz |
add user's public_email attribute to api
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 0fec3dc3dc4..12c4340c1ba 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -53,7 +53,7 @@ module API class User < UserBasic expose :created_at, if: ->(user, opts) { Ability.allowed?(opts[:current_user], :read_user_profile, user) } - expose :bio, :location, :skype, :linkedin, :twitter, :website_url, :organization + expose :bio, :location, :public_email, :skype, :linkedin, :twitter, :website_url, :organization end class UserActivity < Grape::Entity |