FIX: Improve error message when login_required sites are under load

Previously a confusing message would pop up making private communities thing that anonymous access is granted.
This commit is contained in:
Bianca Nenciu
2021-02-24 13:25:55 +11:00
committed by GitHub
parent c9256b717f
commit 845987ce23
2 changed files with 4 additions and 1 deletions
@@ -72,7 +72,9 @@ export default Component.extend({
removeCookie("dosp", { path: "/" });
notices.push(
Notice.create({
text: I18n.t("forced_anonymous"),
text: this.siteSettings.login_required
? I18n.t("forced_anonymous_login_required")
: I18n.t("forced_anonymous"),
id: "forced-anonymous",
})
);