mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
18 lines
461 B
Ruby
18 lines
461 B
Ruby
class BasicGroupSerializer < ApplicationSerializer
|
|
attributes :id,
|
|
:automatic,
|
|
:name,
|
|
:user_count,
|
|
:alias_level,
|
|
:visible,
|
|
:automatic_membership_email_domains,
|
|
:automatic_membership_retroactive,
|
|
:primary_group,
|
|
:title,
|
|
:grant_trust_level,
|
|
:incoming_email
|
|
|
|
def include_incoming_email?
|
|
scope.is_staff?
|
|
end
|
|
end
|