diff options
| author | Valery Sizov <valery@gitlab.com> | 2015-11-05 12:38:00 +0200 |
|---|---|---|
| committer | Valery Sizov <valery@gitlab.com> | 2015-11-05 13:18:51 +0200 |
| commit | 6051c28fc03b4d9928ee2f2855f210845f9c0579 (patch) | |
| tree | 43447b26e57d81765f983ef38e34eb5b3ba10997 /app/controllers/groups_controller.rb | |
| parent | 363900a3e7902cbda8f62b55eb2c30881b3dae3f (diff) | |
| download | gitlab-ce-6051c28fc03b4d9928ee2f2855f210845f9c0579.tar.gz | |
Allow groups to appear in the search results if the group owner allows it
Diffstat (limited to 'app/controllers/groups_controller.rb')
| -rw-r--r-- | app/controllers/groups_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 40fb15a5b36..fb4eb094f27 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -4,12 +4,12 @@ class GroupsController < Groups::ApplicationController before_action :group, except: [:new, :create] # Authorize - before_action :authorize_read_group!, except: [:show, :new, :create] + before_action :authorize_read_group!, except: [:show, :new, :create, :autocomplete] before_action :authorize_admin_group!, only: [:edit, :update, :destroy, :projects] before_action :authorize_create_group!, only: [:new, :create] # Load group projects - before_action :load_projects, except: [:new, :create, :projects, :edit, :update] + before_action :load_projects, except: [:new, :create, :projects, :edit, :update, :autocomplete] before_action :event_filter, only: :show layout :determine_layout @@ -133,7 +133,7 @@ class GroupsController < Groups::ApplicationController end def group_params - params.require(:group).permit(:name, :description, :path, :avatar) + params.require(:group).permit(:name, :description, :path, :avatar, :public) end def load_events |
