prod_2026-06-05
templates/element/space.php excepts to read user id
from CurrentUser::get('id'), so we should only call it if
CurrentUser::isMember() is true.
In case something goes wrong and there is a mismatch between
CurrentUser::get('id') and $session->read('Auth.User.id'),
things might go even worse.
See #3296.