FIX: when site is in read-only mode, create account action should show a warning like login does.

This commit is contained in:
Neil Lalonde 2014-10-02 18:16:23 -04:00
parent eb473696ff
commit 83fc88e965
1 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,11 @@ var ApplicationRoute = Em.Route.extend({
},
showCreateAccount: function() {
if (this.site.get("isReadOnly")) {
bootbox.alert(I18n.t("read_only_mode.login_disabled"));
} else {
this.handleShowCreateAccount();
}
},
autoLogin: function(modal, onFail){