Skip to content

Commit

Permalink
Merge pull request #106 from vtt-lair/fix/permission
Browse files Browse the repository at this point in the history
fix token update permission check
  • Loading branch information
vtt-lair authored Jan 22, 2023
2 parents 3e81d34 + 23288b8 commit 180bd29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/token-replacer.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ const TokenReplacer = {
TokenReplacer.grabSavedSettings();
const actor = game.actors.get(document.actorId);

if (!game.user.isGM && !actor.canUserModify(game.user, "update")) {
if (!actor.canUserModify(game.user, "update")) {
return;
}

Expand Down Expand Up @@ -533,7 +533,7 @@ const TokenReplacer = {

const actor = game.actors.get(document.actorId);

if (!game.user.isGM && !actor.canUserModify(game.user, "update")) {
if (!actor.canUserModify(game.user, "update")) {
return;
}

Expand Down

0 comments on commit 180bd29

Please sign in to comment.