0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/plugins/discourse-assign/app/serializers/group_user_assigned_serializer.rb
2025-07-15 16:38:05 +02:00

9 lines
202 B
Ruby
Vendored

# frozen_string_literal: true
class GroupUserAssignedSerializer < BasicUserSerializer
attributes :assignments_count, :username_lower
def include_assignments_count
object.can_assign?
end
end