Allow access to group from root url

This commit is contained in:
Dmitriy Zaporozhets 2015-09-14 11:16:54 +02:00
parent 4c060074b7
commit 4e1c6019c8

View file

@ -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!