diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-06-28 17:27:01 -0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-06-28 17:27:01 -0300 |
commit | bd4c2847f4a60b392902aa1866c1ccc87cfacbf6 (patch) | |
tree | bcd7c8ffc15c8610c16e9df2df440174d974da20 /lib/api/namespaces.rb | |
parent | 7db276897f290889ba7c1e66b38389b1c55f3f80 (diff) | |
download | gitlab-ce-bd4c2847f4a60b392902aa1866c1ccc87cfacbf6.tar.gz |
Rename members_count to members_count_with_descendants and expose only to group admins
Diffstat (limited to 'lib/api/namespaces.rb')
-rw-r--r-- | lib/api/namespaces.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/namespaces.rb b/lib/api/namespaces.rb index 30761cb9b55..f1eaff6b0eb 100644 --- a/lib/api/namespaces.rb +++ b/lib/api/namespaces.rb @@ -17,7 +17,7 @@ module API namespaces = namespaces.search(params[:search]) if params[:search].present? - present paginate(namespaces), with: Entities::Namespace + present paginate(namespaces), with: Entities::Namespace, current_user: current_user end end end |