New fixes around sheets
This commit is contained in:
@@ -266,7 +266,8 @@ export class VermineUtils {
|
||||
*/
|
||||
static async onReroll(message, ev) {
|
||||
// Verify user permissions
|
||||
if (game.user?._id !== message.user._id && !game.user?.isGM) {
|
||||
const msgUserId = message.user?.id ?? message.user;
|
||||
if (msgUserId !== game.user?.id && !game.user?.isGM) {
|
||||
ui.notifications.warn(game.i18n.localize('VERMINE.error_cannot_reroll'));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user