Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22425124
disallow-update.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
477 B
Referenced Files
None
Subscribers
None
disallow-update.js
View Options
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
Details
Attached
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)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline