fix owner check
This commit is contained in:
parent
0bd2fc525e
commit
0a9701f4c9
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ func (b *Bot) allowOwner(actorID id.UserID, targetRoomID id.RoomID) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
return owner == actorID.String()
|
return owner == actorID.String() || b.allowAdmin(actorID, targetRoomID)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *Bot) allowAdmin(actorID id.UserID, _ id.RoomID) bool {
|
func (b *Bot) allowAdmin(actorID id.UserID, _ id.RoomID) bool {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue