Skip to content

Make all Serializers receive `current_user` instead `user` [EE]

https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1711 passes current_user to the MergeRequestSerializer, which passes current_user the it's Entity leafs (e.g. PipelineSerializer). The problem is that new leafs were added while https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1711 wasn't merged, causing conflicts and more overhead about current_user or user usage.

This MR makes all entities receive current_user, avoiding errors and overhead.

CE MR: gitlab-ce!11254

Merge request reports

Loading