diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-14 11:05:23 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-14 11:05:23 +0200 |
commit | 4c060074b792519e23403c0b21d4c2b3b49a8f36 (patch) | |
tree | aee3e0dfc6db0666de1b01b62e8d616a251391ad /app/controllers | |
parent | b7431ec042bc14052c407fd277177681e189c892 (diff) | |
download | gitlab-ce-4c060074b792519e23403c0b21d4c2b3b49a8f36.tar.gz |
Skip auth for group page but return auth for other group pages
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/groups_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 279c6ef0f4d..9f4702c6f53 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -4,7 +4,7 @@ class GroupsController < Groups::ApplicationController before_action :group, except: [:new, :create] # Authorize - before_action :authorize_read_group!, except: [:new, :create] + before_action :authorize_read_group!, except: [:show, :new, :create] before_action :authorize_admin_group!, only: [:edit, :update, :destroy, :projects] before_action :authorize_create_group!, only: [:new, :create] |