Add meta properties that indicate if the document is embedded, and if the user is able to edit it

This commit is contained in:
Oliver-Akins 2025-07-23 22:17:05 -06:00
parent 0bd099cc28
commit b72c9d9739

View file

@ -91,8 +91,9 @@ export function GenericAppMixin(HandlebarsApp) {
ctx.meta.idp = this.document?.uuid ?? this.id;
if (this.document) {
ctx.meta.limited = this.document.limited;
ctx.meta.editable = ctx.editable;
}
ctx.meta.editable = this.document.isOwner;
ctx.meta.embedded = this.document.isEmbedded;
};
delete ctx.editable;
return ctx;