diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-14 11:16:54 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-14 11:16:54 +0200 |
commit | 4e1c6019c8f0d3b00e32fd6cd546d2ef445a285d (patch) | |
tree | 503b88744a47bef1169605aa2693bf970e62f995 /app | |
parent | 4c060074b792519e23403c0b21d4c2b3b49a8f36 (diff) | |
download | gitlab-ce-4e1c6019c8f0d3b00e32fd6cd546d2ef445a285d.tar.gz |
Allow access to group from root url
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/namespaces_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/namespaces_controller.rb b/app/controllers/namespaces_controller.rb index 83eec1bf4a2..282012c60a1 100644 --- a/app/controllers/namespaces_controller.rb +++ b/app/controllers/namespaces_controller.rb @@ -14,7 +14,7 @@ class NamespacesController < ApplicationController if user redirect_to user_path(user) - elsif group && can?(current_user, :read_group, group) + elsif group redirect_to group_path(group) elsif current_user.nil? authenticate_user! |