diff --git a/module/Apps/GenericApp.mjs b/module/Apps/GenericApp.mjs index b1a1162..66742a1 100644 --- a/module/Apps/GenericApp.mjs +++ b/module/Apps/GenericApp.mjs @@ -4,7 +4,8 @@ import { RichEditor } from "./RichEditor.mjs"; import { toBoolean } from "../consts.mjs"; /** - * A mixin that takes the class from HandlebarsApplicationMixin and + * A mixin that takes the class from HandlebarsApplicationMixin and combines it + * with utility functions / data that is used across all RipCrypt applications */ export function GenericAppMixin(HandlebarsApp) { class GenericRipCryptApp extends HandlebarsApp { @@ -91,7 +92,7 @@ export function GenericAppMixin(HandlebarsApp) { ctx.meta.idp = this.document?.uuid ?? this.id; if (this.document) { ctx.meta.limited = this.document.limited; - ctx.meta.editable = this.document.isOwner; + ctx.meta.editable = this.isEditable ?? game.user.isGM; ctx.meta.embedded = this.document.isEmbedded; }; delete ctx.editable;