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

View File

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