diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-24 15:57:56 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-24 15:57:56 +0100 |
commit | 8e746daad538cc456fdf618a4d6a639c5f64b174 (patch) | |
tree | 00c3d7e9698256630bb73ea291ca382752105381 /lib/api/groups.rb | |
parent | 2953e0d19b46a937ee9d84139adbc263c8e89757 (diff) | |
download | gitlab-ce-api-groups.tar.gz |
Return all authorized groups in API.api-groups
Diffstat (limited to 'lib/api/groups.rb')
-rw-r--r-- | lib/api/groups.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index a92abd4b690..4aeb6069899 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -12,7 +12,7 @@ module API @groups = if current_user.admin Group.all else - current_user.groups + current_user.authorized_groups end @groups = @groups.search(params[:search]) if params[:search].present? |