ItemOtherPermissions
objects describe world permissions on an item.other
property of the associated Item
.
canRead
Boolean
const recipes = here.file('recipes.md');
recipes.other.canRead = true;
canWrite
Boolean
const recipes = here.file('recipes.md');
recipes.other.canWrite = true;
canExecute
Boolean
const recipes = here.file('recipes.md');
recipes.other.canExecute = true;
self
set(Object values)
key
-value
couple in values, sets the key
attribute of the ItemOtherPermissions
to value
. This makes it easy to set multiple attributes on the object at once.values |
A map of property names and values.
|
let scriptPermissions = here.file('script.js').other;
scriptPermissions.set({
canWrite: false,
canExecute: true
});
return scriptPermissions.canWrite; // returns `false`