FIX: when site is in read-only mode, create account action should show a warning like login does.
This commit is contained in:
parent
eb473696ff
commit
83fc88e965
|
@ -47,7 +47,11 @@ var ApplicationRoute = Em.Route.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
showCreateAccount: function() {
|
showCreateAccount: function() {
|
||||||
|
if (this.site.get("isReadOnly")) {
|
||||||
|
bootbox.alert(I18n.t("read_only_mode.login_disabled"));
|
||||||
|
} else {
|
||||||
this.handleShowCreateAccount();
|
this.handleShowCreateAccount();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
autoLogin: function(modal, onFail){
|
autoLogin: function(modal, onFail){
|
||||||
|
|
Loading…
Reference in New Issue