mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 08:32:26 +08:00
8 lines
187 B
Ruby
8 lines
187 B
Ruby
class BasicGroupUserSerializer < ApplicationSerializer
|
|
attributes :group_id, :user_id, :notification_level, :owner
|
|
|
|
def include_owner?
|
|
object.user_id == scope&.user&.id
|
|
end
|
|
end
|