Skip to content
Snippets Groups Projects
Commit 6070145b authored by http://jneen.net/'s avatar http://jneen.net/
Browse files

test if we can :read_group the group, not the namespace

parent 2bdcef4d
No related branches found
No related tags found
No related merge requests found
Loading
@@ -14,7 +14,7 @@ class NamespacesController < ApplicationController
Loading
@@ -14,7 +14,7 @@ class NamespacesController < ApplicationController
   
if user if user
redirect_to user_path(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) redirect_to group_path(group)
elsif current_user.nil? elsif current_user.nil?
authenticate_user! authenticate_user!
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment