summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-09-19 11:15:57 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-04 22:49:41 +0200
commit31f775689396722e38de20157b46a75b1fe40582 (patch)
treea91dfc0f12c5ac8b844094957519b131967d33f2 /app/serializers
parente3daa73fbfce6f178de512aeb165072f1ffde503 (diff)
downloadgitlab-ce-31f775689396722e38de20157b46a75b1fe40582.tar.gz
`current_user:` as a keyword argument
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/group_child_entity.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/serializers/group_child_entity.rb b/app/serializers/group_child_entity.rb
index 35f5a020793..6c795da8f88 100644
--- a/app/serializers/group_child_entity.rb
+++ b/app/serializers/group_child_entity.rb
@@ -55,7 +55,8 @@ class GroupChildEntity < Grape::Entity
unless: lambda { |_instance, _options| project? }
def children_finder
- @children_finder ||= GroupChildrenFinder.new(request.current_user, parent_group: object)
+ @children_finder ||= GroupChildrenFinder.new(current_user: request.current_user,
+ parent_group: object)
end
def children_count