Enha: mime to see marks

This commit is contained in:
Grail Finder
2025-09-10 09:38:07 +03:00
parent a1f38c2b26
commit 6daab9cb1a
4 changed files with 54 additions and 7 deletions

View File

@@ -213,7 +213,12 @@ func HandleMarkCard(w http.ResponseWriter, r *http.Request) {
return
}
if err := validateMove(fi, models.UserRoleGuesser); err != nil {
abortWithError(w, err.Error())
// abortWithError(w, err.Error())
log.Debug("pressed mark-card out of move", "error", err)
return
}
if fi.State.Role == models.UserRoleMime {
log.Debug("mime pressed mark-card")
return
}
color, exists := fi.Room.FindColor(word)