diff --git a/app/assets/javascripts/discourse/routes/application.js.es6 b/app/assets/javascripts/discourse/routes/application.js.es6 index a2058ca0c64..ae75165f696 100644 --- a/app/assets/javascripts/discourse/routes/application.js.es6 +++ b/app/assets/javascripts/discourse/routes/application.js.es6 @@ -47,7 +47,11 @@ var ApplicationRoute = Em.Route.extend({ }, showCreateAccount: function() { - this.handleShowCreateAccount(); + if (this.site.get("isReadOnly")) { + bootbox.alert(I18n.t("read_only_mode.login_disabled")); + } else { + this.handleShowCreateAccount(); + } }, autoLogin: function(modal, onFail){