summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-06-07 22:40:37 -0500
committerDouwe Maan <douwe@selenight.nl>2017-06-07 22:40:37 -0500
commit4934c70961f1f43dd8166c27a72a6a393684df2f (patch)
tree98119d3eced5d5e442eed9c79fd99ccf92daab01 /app/serializers
parente56556e1feadefe795c48b91b484ed04e022cf9b (diff)
downloadgitlab-ce-4934c70961f1f43dd8166c27a72a6a393684df2f.tar.gz
Expose human group access on GroupEntity
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/group_entity.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/group_entity.rb b/app/serializers/group_entity.rb
index b389a63511f..4f506f7e745 100644
--- a/app/serializers/group_entity.rb
+++ b/app/serializers/group_entity.rb
@@ -11,8 +11,8 @@ class GroupEntity < Grape::Entity
expose :created_at, :updated_at
expose :permissions do
- expose :group_access do |group, options|
- group.group_members.find_by(user_id: request.current_user)&.access_level
+ expose :human_group_access do |group, options|
+ group.group_members.find_by(user_id: request.current_user)&.human_access
end
end