forked from External/greenlight
Merge branch 'v2.2.1-alpha' into master
This commit is contained in:
@ -107,7 +107,7 @@ module ApplicationHelper
|
||||
# Returns the page that the logo redirects to when clicked on
|
||||
def home_page
|
||||
return root_path unless current_user
|
||||
return admins_path if current_user.has_role? :super_admin
|
||||
return admins_path if current_user.has_cached_role? :super_admin
|
||||
current_user.main_room
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user