mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-19 03:35:56 +00:00
fix: read_only fields in ES
This commit is contained in:
@@ -41,7 +41,10 @@ class ValidationES extends BaseES {
|
||||
console.log('OLD ENT', extra.old_entity);
|
||||
|
||||
for ( const prop of Object.values(this.om.properties) ) {
|
||||
if ( prop.descriptor.protected ) {
|
||||
if (
|
||||
prop.descriptor.protected ||
|
||||
prop.descriptor.read_only
|
||||
) {
|
||||
await entity.del(prop.name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ module.exports = {
|
||||
// SYSTEM
|
||||
godmode: {
|
||||
type: 'flag',
|
||||
protected: true,
|
||||
read_only: true,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user