zeel01 / roll-tokens

A foundry VTT module to randomize and control the image and name of a Token using a Rollable table.
MIT License
4 stars 2 forks source link

The Rollable Table selection dropdown does not filter out tables that the user does not have permission to see. #4

Open Cmac21798 opened 2 years ago

Cmac21798 commented 2 years ago

I've assigned rollable tokens to my player's tokens, and we've found that they're able to view all rollable tables in the game through the Token Image Rollable Table dropdown menu, even tables they have no permission to view. Preventing players from seeing tables they don't have permission to view in the dropdown menu would be a helpful addition!

Attached are images showing the issue (Player view and GM view) Player_view GM_view

zeel01 commented 2 years ago

Needs a permission check for observer permission against the current user when enumerating available tables.