diff --git a/cmd/app/main.go b/cmd/app/main.go index 513f37c..009cc29 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -135,6 +135,7 @@ func handleSecretCommand(bc BotController, update tgbotapi.Update, user User) { } func handlePanelCommand(bc BotController, update tgbotapi.Update, user User) { + if !user.IsAdmin() {return} if !user.IsEffectiveAdmin() { bc.db.Model(&user).Update("RoleBitmask", user.RoleBitmask|0b10) msg := tgbotapi.NewMessage(update.Message.Chat.ID, "You was in usermode, turned back to admin mode...")