Page MenuHomeSealhub

disallow-update.js
No OneTemporary

Authored By
Unknown
Size
477 B
Referenced Files
None
Subscribers
None

disallow-update.js

module.exports = app => ({
name: "disallow-update",
is_proper_value: (context, params, new_value, old_value) => {
const target_field_type = new app.Sealious.FieldType(
app,
params.target_field.type
);
if (old_value === undefined) {
return target_field_type.is_proper_value(
new app.Sealious.SuperContext(),
params.target_field.params,
new_value,
old_value
);
}
return Promise.reject("You cannot change previously set value.");
},
});

File Metadata

Mime Type
application/javascript
Expires
Sat, Nov 28, 04:18 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1230263
Default Alt Text
disallow-update.js (477 B)

Event Timeline