Add meta properties that indicate if the document is embedded, and if the user is able to edit it
This commit is contained in:
parent
0bd099cc28
commit
b72c9d9739
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue