summaryrefslogtreecommitdiff
path: root/app/serializers/label_entity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/label_entity.rb')
-rw-r--r--app/serializers/label_entity.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/serializers/label_entity.rb b/app/serializers/label_entity.rb
index 304fd9de08f..4452161051e 100644
--- a/app/serializers/label_entity.rb
+++ b/app/serializers/label_entity.rb
@@ -1,11 +1,13 @@
class LabelEntity < Grape::Entity
- expose :id
+ expose :id, if: ->(label, _) { !label.is_a?(GlobalLabel) }
+
expose :title
expose :color
expose :description
expose :group_id
expose :project_id
expose :template
+ expose :text_color
expose :created_at
expose :updated_at
end