Closed ddbrown30 closed 2 months ago
This pull request implements changes to restrict the visibility of the save macro button to owners and trusted players, and updates the logic for hiding forms and master-only sections in chat messages.
Change | Details | Files |
---|---|---|
Restrict visibility of save macro button |
|
betterrolls-swade2/templates/common_card_header.html betterrolls-swade2/scripts/brsw2-init.js |
Update logic for hiding forms and master-only sections |
|
betterrolls-swade2/scripts/brsw2-init.js |
Unless I'm mistaken (haven't already tried this), this PR will hide the roll buttons of the player's chat cards from the GM. Is this intended? Or maybe I'm just mistaken?
You are indeed mistaken. isOwner returns true for the GM. They are considered owners of everything.
Summary by Sourcery
Restrict the save macro button visibility to owners and trusted players, enhancing the security and user interface by ensuring that only authorized users can access certain features.
Enhancements: