mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 07:24:26 +08:00

Otherwise, they are simply dead code and the attribute is visible by default. These bugs did not expose any sensitive information.
18 lines
327 B
Ruby
18 lines
327 B
Ruby
# frozen_string_literal: true
|
|
|
|
class GroupUserSerializer < BasicUserSerializer
|
|
include UserPrimaryGroupMixin
|
|
|
|
attributes :name,
|
|
:title,
|
|
:last_posted_at,
|
|
:last_seen_at,
|
|
:added_at,
|
|
:timezone
|
|
|
|
def include_added_at?
|
|
object.respond_to? :added_at
|
|
end
|
|
|
|
end
|