From 0a9701f4c9a71596cdbfec7027d5438d7fd8e8e9 Mon Sep 17 00:00:00 2001 From: Aine Date: Mon, 5 Feb 2024 22:21:15 +0200 Subject: [PATCH] fix owner check --- bot/access.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/access.go b/bot/access.go index bc32d76..eddf8c9 100644 --- a/bot/access.go +++ b/bot/access.go @@ -61,7 +61,7 @@ func (b *Bot) allowOwner(actorID id.UserID, targetRoomID id.RoomID) bool { return true } - return owner == actorID.String() + return owner == actorID.String() || b.allowAdmin(actorID, targetRoomID) } func (b *Bot) allowAdmin(actorID id.UserID, _ id.RoomID) bool {