mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: when site is in read-only mode, create account action should show a warning like login does.
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user