From a2348a714c270901a097c81372dd8fecbbb9d892 Mon Sep 17 00:00:00 2001 From: akulij Date: Tue, 13 Aug 2024 03:27:16 +0300 Subject: [PATCH] Fix: allow to leave a ticket for admins --- cmd/app/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/app/main.go b/cmd/app/main.go index 53af2a6..19e71a2 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -184,7 +184,7 @@ func ProcessUpdate(bc BotController, update tgbotapi.Update) { log.Printf("Set role bitmask (%b) for user: %d", user.RoleBitmask, user.ID) msg := tgbotapi.NewMessage(update.Message.Chat.ID, "Simulating user experience!") bc.bot.Send(msg) - } else if user.IsEffectiveAdmin() { + } else if user.IsEffectiveAdmin() && user.State != "leaveticket" { if user.State != "start" { if strings.HasPrefix(user.State, "imgset:") { Literal := strings.Split(user.State, ":")[1]