lock the admin domain based on the edition

This commit is contained in:
Girish Ramakrishnan
2018-09-05 22:58:43 -07:00
parent 91a1bc7a01
commit 8d5e70f6aa
4 changed files with 32 additions and 7 deletions

View File

@@ -43,6 +43,7 @@ exports = module.exports = {
isSpacesEnabled: isSpacesEnabled,
allowHyphenatedSubdomains: allowHyphenatedSubdomains,
allowOperatorActions: allowOperatorActions,
isAdminDomainLocked: isAdminDomainLocked,
// for testing resets to defaults
_reset: _reset
@@ -240,6 +241,10 @@ function allowOperatorActions() {
return get('edition') !== 'hostingprovider';
}
function isAdminDomainLocked() {
return get('edition') === 'hostingprovider';
}
function provider() {
return get('provider');
}