diff --git a/pkg/internal/http/api/channel_members_api.go b/pkg/internal/http/api/channel_members_api.go index 84af3e7..a96ed85 100644 --- a/pkg/internal/http/api/channel_members_api.go +++ b/pkg/internal/http/api/channel_members_api.go @@ -134,8 +134,7 @@ func removeChannelMember(c *fiber.Ctx) error { var channel models.Channel if err := database.C.Where(&models.Channel{ - Alias: alias, - AccountID: user.ID, + Alias: alias, }).First(&channel).Error; err != nil { return fiber.NewError(fiber.StatusNotFound, err.Error()) } else if channel.Type == models.ChannelTypeDirect {