mirror of
https://github.com/discourse/discourse.git
synced 2025-01-20 19:59:44 +08:00
REFACTOR: Remove Discourse.SiteSettings
from application controller
This commit is contained in:
parent
ccb36f81c4
commit
21ea4d1238
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user