gitlab-org--gitlab-foss/lib/api/entities/user.rb

15 lines
440 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module API
module Entities
class User < UserBasic
include UsersHelper
expose :created_at, if: ->(user, opts) { Ability.allowed?(opts[:current_user], :read_user_profile, user) }
expose :bio, :location, :public_email, :skype, :linkedin, :twitter, :website_url, :organization, :job_title
expose :work_information do |user|
work_information(user)
end
end
end
end