Skip to content
Snippets Groups Projects
Commit 11b57d97 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Reduce amount of user info provided with internal api

parent a29c883b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,6 +5,10 @@ module Gitlab
:dark_scheme, :theme_id, :state, :created_at, :extern_uid, :provider
end
 
class UserSafe < Grape::Entity
expose :name
end
class UserBasic < Grape::Entity
expose :id, :username, :email, :name, :state, :created_at
end
Loading
Loading
Loading
Loading
@@ -44,7 +44,7 @@ module Gitlab
#
get "/discover" do
key = Key.find(params[:key_id])
present key.user, with: Entities::User
present key.user, with: Entities::UserSafe
end
 
get "/check" do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment