Skip to content

Commit 57b31e6

Browse files
committed
fix(frontend): stop executing compose page handlers when logged out
1 parent 7984a58 commit 57b31e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/core/js_modules/route_handlers.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ function applyMessagePageHandlers(routeParams) {
114114
}
115115

116116
function applyComposePageHandlers(routeParams) {
117-
applySmtpComposePageHandlers(routeParams);
117+
if (hm_is_logged()) {
118+
applySmtpComposePageHandlers(routeParams);
119+
}
118120
if (hm_module_is_supported('contacts')) {
119121
applyContactsAutocompleteComposePageHandlers(routeParams);
120122
}

0 commit comments

Comments
 (0)