Revert "add exception to validation"

This reverts commit be00d24bfa.
This commit is contained in:
Ed Chalstrey 2022-06-06 12:03:54 +01:00
parent be00d24bfa
commit ff283f2ea1

View File

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