Skip to content

Commit ba519ce

Browse files
committed
Prevent re-instantiating default space
1 parent 8131f0e commit ba519ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def user_not_authorized(exception)
114114
end
115115

116116
def set_current_space
117-
Space.current_space = TeSS::Config.feature['spaces'] ? Space.find_by_host(request.host) : nil
117+
Space.current_space = TeSS::Config.feature['spaces'] ? Space.find_by_host(request.host) : Space.default
118118
end
119119

120120
def current_space

0 commit comments

Comments
 (0)