From 6533b3edee33b3789cb647e003f4863c35739b78 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Sun, 19 Apr 2026 19:41:21 -0400 Subject: [PATCH] Fix context menu detection for actions --- module/data/action/baseAction.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/data/action/baseAction.mjs b/module/data/action/baseAction.mjs index 0992350b..daed5d1a 100644 --- a/module/data/action/baseAction.mjs +++ b/module/data/action/baseAction.mjs @@ -110,6 +110,11 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel return this._id; } + /** Returns true if the current user is the owner of the containing item */ + get isOwner() { + return this.item?.isOwner ?? true; + } + /** * Return Item the action is attached too. */