Skip to content

Commit 0c2d15c

Browse files
committed
Ignore space with tess.elixir-europe.org host
1 parent 712b804 commit 0c2d15c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/controllers/application_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ def user_not_authorized(exception)
115115
end
116116

117117
def set_current_space
118-
Space.current_space = TeSS::Config.feature['spaces'] ? Space.find_by_host(request.host) : Space.default
118+
host = request.host
119+
return Space.default if host == 'tess.elixir-europe.org'
120+
Space.current_space = TeSS::Config.feature['spaces'] ? Space.find_by_host(host) : Space.default
119121
end
120122

121123
def current_space

0 commit comments

Comments
 (0)