Automatic Merge
Этот коммит содержится в:
M-ZubairAhmed
2026-01-08 14:17:31 +00:00
коммит произвёл GitHub
родитель fc8b22242d
Коммит d6d3d5447e
2 изменённых файлов: 63 добавлений и 1 удалений

Просмотреть файл

@@ -513,7 +513,7 @@ func (a *App) FillInPostProps(c request.CTX, post *model.Post, channel *model.Ch
}
for _, mentioned := range mentionedChannels {
if mentioned.Type == model.ChannelTypeOpen {
if mentioned.Type == model.ChannelTypeOpen && a.HasPermissionToReadChannel(c, post.UserId, mentioned) {
team, err := a.Srv().Store().Team().Get(mentioned.TeamId)
if err != nil {
c.Logger().Warn("Failed to get team of the channel mention", mlog.String("team_id", channel.TeamId), mlog.String("channel_id", channel.Id), mlog.Err(err))