diff options
author | http://jneen.net/ <jneen@jneen.net> | 2016-08-22 17:45:15 -0700 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2016-08-30 11:39:22 -0700 |
commit | 6070145bebad0a8284b4fe4bb7a1e2b97f03ab1b (patch) | |
tree | 070f7edc4ab43bda2305ccb8159b9de9478d02bf | |
parent | 2bdcef4d672121a387fca6da720d333dda8f7af6 (diff) | |
download | gitlab-ce-6070145bebad0a8284b4fe4bb7a1e2b97f03ab1b.tar.gz |
test if we can :read_group the group, not the namespace
-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 5a94dcb0dbd..83eec1bf4a2 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, namespace) + elsif group && can?(current_user, :read_group, group) redirect_to group_path(group) elsif current_user.nil? authenticate_user! |