disable update of domain in demo mode

we removed the locked flag, so we have to add this check
This commit is contained in:
Girish Ramakrishnan
2020-02-19 10:45:55 -08:00
parent 2870f24bec
commit e7a98025a2
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -253,6 +253,8 @@ function update(domain, data, auditSource, callback) {
let { zoneName, provider, config, fallbackCertificate, tlsConfig } = data;
if (settings.isDemo() && (domain === settings.adminDomain())) return callback(new BoxError(BoxError.CONFLICT, 'Not allowed in demo mode'));
domaindb.get(domain, function (error, domainObject) {
if (error) return callback(error);