Commit ee11a0ee authored by Serena Fang's avatar Serena Fang

Do not expose name if user is project bot

parent 87abf342
......@@ -3,7 +3,8 @@
module API
module Entities
class UserSafe < Grape::Entity
expose :id, :name, :username
expose :id, :username
expose :name, unless: ->(user) { user.project_bot? }
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment