Allow access to group from root url
This commit is contained in:
parent
4c060074b7
commit
4e1c6019c8
1 changed files with 1 additions and 1 deletions
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue