Fix context menu detection for actions

This commit is contained in:
Carlos Fernandez 2026-04-19 19:41:21 -04:00
parent 0f70755162
commit 6533b3edee

View file

@ -110,6 +110,11 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
return this._id; 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. * Return Item the action is attached too.
*/ */