mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 21:54:01 +08:00
![Dan Ungureanu](/assets/img/avatar_default.png)
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
|