diff options
author | barthc <mackintosh02@gmail.com> | 2016-09-01 18:23:39 +0100 |
---|---|---|
committer | barthc <mackintosh02@gmail.com> | 2016-10-05 09:57:54 +0100 |
commit | 35ced4dae480d61ddc4d73eb4695626ecc419e9c (patch) | |
tree | a3c9d9cec9c9741884ef5d4dbed0402e61a62f5d /lib | |
parent | 4dc61dc7128608ce5eca4b0911d7174a1ab2aea4 (diff) | |
download | gitlab-ce-35ced4dae480d61ddc4d73eb4695626ecc419e9c.tar.gz |
fix group links 404
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/groups.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 953fa474e88..bfb89475025 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -6,6 +6,8 @@ module API resource :groups do # Get a groups list # + # Parameters: + # skip_groups (optional) - Array of group ids to exclude from list # Example Request: # GET /groups get do @@ -16,6 +18,7 @@ module API end @groups = @groups.search(params[:search]) if params[:search].present? + @groups = @groups.where.not(id: params[:skip_groups]) if params[:skip_groups].present? @groups = paginate @groups present @groups, with: Entities::Group end |