add exception to validation

This commit is contained in:
Ed Chalstrey 2022-06-06 12:01:20 +01:00
parent db9159e24c
commit be00d24bfa

View File

@ -29,7 +29,9 @@ export function validateFieldChange(field: string, value: any, isExternal: boole
const allowDerived = !isExternal;
if(!canEdit(field, allowDerived)) {
throw new InvalidFieldError('Field is not editable', field);
if(field != 'is_extension'){
throw new InvalidFieldError('Field is not editable', field);
}
}
if(field in compiledSchemas) {