mouse0270 / module-credits

Lists the authors of projects on the Manage Modules Window. If a url is provided in the module.json file, it will make the version tag link to the module url.
MIT License
7 stars 6 forks source link

User Lacks Permission #83

Open webmaster94 opened 1 year ago

webmaster94 commented 1 year ago

Hello, I have encountered a very strange bug which took some investigation to even trace it to Module Management+.

Foundry Virtual Tabletop: Version 10, 10.288 Game System: dnd5e, 2.0.3 Module Version: 2.1.5 Error: image

After running game.settings.storage.get("world").get("l73PyOsEODLUDlSu") to get the setting that the user lacked permission to I determined it is module-credits.presetsRollbacks. I looked through Module Managements settings and I don't see one that is really analogous to what I am seeing here so I assume it must be a backend setting that isn't presented to the settings menu.

Any assistance on this would be greatly appreciated.

mouse0270 commented 1 year ago

The problem is that I update a world setting saving rollbacks when you update your module list. The problem is I am stupid and forgot to check to only save if the setting is for the game master, so its trying to do it even on the players end.

I have it patched, I just need to push out an update for it. But thank you for making a ticket for it, makes it easier to track.

webmaster94 commented 1 year ago

No problem. It honestly was a really weird bug that took some research to figure out. I am glad the fix was relatively simple.