Add edition checks

This commit is contained in:
Girish Ramakrishnan
2018-08-30 21:20:49 -07:00
parent 534a00b3af
commit fc96f59ecc
2 changed files with 16 additions and 7 deletions

View File

@@ -39,6 +39,7 @@ exports = module.exports = {
isDemo: isDemo,
isSpacesEnabled: isSpacesEnabled,
allowHyphenatedSubdomains: allowHyphenatedSubdomains,
// for testing resets to defaults
_reset: _reset
@@ -225,7 +226,11 @@ function isDemo() {
}
function isSpacesEnabled() {
return get('edition') === 'spaces';
return get('edition') === 'education';
}
function allowHyphenatedSubdomains() {
return get('edition') === 'hostingprovider';
}
function provider() {