Miskatonic-Investigative-Society / CoC7-FoundryVTT

An unofficial implementation of the Call of Cthulhu 7th Edition game system for Foundry Virtual Tabletop
https://discord.gg/foundryvtt
GNU General Public License v3.0
118 stars 97 forks source link

'User lacks permission to update ChatMessage' error message #1514

Open cornyB23 opened 6 months ago

cornyB23 commented 6 months ago

Prerequisites.

Description.

GM targets a player token then clicks the Sanity loss button on a creature/monster character sheet. This opens a chat message for the targeted player with a button to make a Sanity check roll.

Expected Behavior.

The player clicks the Sanity Check button, the roll is made and subseuent adjustments (sanity loss, bouts of madness, etc. ) arte made.

Actual Behavior.

The player gets a '"User [player name] lacks permission to updaye ChatMessage (message-id]" error and no roll is made. This happens when player is promoted to Trusted Player, but is solved by promoting player to GM Assistant or higher. Tested in Firefox and Chrome, and with no modules running.

snap01 commented 6 months ago

The Actor the token is related to needs to both be set to Owner for the User and the Users default character. This can be set in player list, right click the users name, select User Configuration, make sure the correct actor is selected.

snap01 commented 6 months ago

Leaving this issue open as a future refactor of the code will prevent this issue

cornyB23 commented 6 months ago

You star. Many thanks