🐛 Fix wrong perm check of channel member
This commit is contained in:
parent
fabda61822
commit
65cb542985
@ -135,7 +135,6 @@ func removeChannelMember(c *fiber.Ctx) error {
|
||||
var channel models.Channel
|
||||
if err := database.C.Where(&models.Channel{
|
||||
Alias: alias,
|
||||
AccountID: user.ID,
|
||||
}).First(&channel).Error; err != nil {
|
||||
return fiber.NewError(fiber.StatusNotFound, err.Error())
|
||||
} else if channel.Type == models.ChannelTypeDirect {
|
||||
|
Loading…
x
Reference in New Issue
Block a user