From b72c9d9739b1dba5da700bf5ca11af28220159d4 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Wed, 23 Jul 2025 22:17:05 -0600 Subject: [PATCH] Add meta properties that indicate if the document is embedded, and if the user is able to edit it --- module/Apps/GenericApp.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/Apps/GenericApp.mjs b/module/Apps/GenericApp.mjs index 1fe5edf..b1a1162 100644 --- a/module/Apps/GenericApp.mjs +++ b/module/Apps/GenericApp.mjs @@ -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;