mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:20:43 +08:00
2e085915cc
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
|