REFACTOR: Remove `Discourse.SiteSettings` from application controller

This commit is contained in:
Robin Ward 2020-07-21 11:49:55 -04:00
parent ccb36f81c4
commit 21ea4d1238
1 changed files with 4 additions and 4 deletions

View File

@ -11,15 +11,15 @@ export default Controller.extend({
@discourseComputed
canSignUp() {
return (
!Discourse.SiteSettings.invite_only &&
Discourse.SiteSettings.allow_new_registrations &&
!Discourse.SiteSettings.enable_sso
!this.siteSettings.invite_only &&
this.siteSettings.allow_new_registrations &&
!this.siteSettings.enable_sso
);
},
@discourseComputed
loginRequired() {
return Discourse.SiteSettings.login_required && !this.currentUser;
return this.siteSettings.login_required && !this.currentUser;
},
@discourseComputed