mattermost/server
Rajat Dabade 0481bd1fb0
Fliter post in search api with no read content channel permission (#34620)
* Fliter post in search api with no read content channel permission

* Added test

* Review comments

* reverted the unnecessary code

* linter fixes

* Fix filter functions to handle non-existent channels gracefully

When filtering posts/files by channel permissions, GetChannels() returns
a 404 error if all requested channels don't exist. This caused the
entire filter operation to fail. Now we ignore 404 errors and continue
processing, allowing non-existent channels to be filtered out as expected.

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Jesse Hallam <jesse@mattermost.com>
2026-01-07 10:21:55 -04:00
..
bin Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
build Bump ubuntu base image version (#31819) 2025-11-19 12:02:40 +02:00
channels Fliter post in search api with no read content channel permission (#34620) 2026-01-07 10:21:55 -04:00
cmd [MM-66789] Restrict ImportSettings.Directory changes via API and add validation (#34653) 2026-01-06 16:30:07 +00:00
config MM-66890 - Set default for BurnOnRead feature flag to true (#34763) 2025-12-18 09:39:44 +01:00
einterfaces feat: Add Microsoft Intune MAM authentication support (#34577) 2025-12-10 08:31:53 +02:00
enterprise [MM-61758] Burn on read feature (#34703) 2025-12-11 07:59:50 +01:00
fips MM-65959: Add FIPS indicator to about dialog (#34463) 2025-12-11 18:37:29 -04:00
fonts Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
i18n Fix copyright date and address for email footers (#34813) 2026-01-05 13:59:37 -05:00
platform Add docs re Shared Channels APIs calls and data flow (#34682) 2025-12-21 16:15:07 -05:00
public MM-66890 - Set default for BurnOnRead feature flag to true (#34763) 2025-12-18 09:39:44 +01:00
scripts Update ldap-check.sh (#31180) 2025-10-07 12:31:48 +02:00
templates MM-59966 - Compliance Export overhaul - feature branch (#29789) 2025-01-10 16:56:02 -05:00
tests Remove certificate-based auth (#33751) 2025-08-21 09:59:20 -03:00
.gitignore Update .server/gitignore to ignore all JSON files under the directory (#27593) 2024-07-11 09:12:57 +02:00
.go-version ugprade to go 1.24.6 (#34004) 2025-09-30 19:22:02 -03:00
.golangci.yml MM-65756 Database Migrations, Indexes and Methods for Auto-Translation (#34047) 2025-11-22 09:32:01 +08:00
.sass-lint.yml Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
config.mk Enabling Prometheus, Grafana, Loki and Promtail running as containers by default in local dev environments (#34263) 2025-10-23 14:08:53 +02:00
copyright.txt Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
docker-compose.makefile.m1.yml Remove obsolete docker version (#30040) 2025-01-30 12:53:25 -07:00
docker-compose.makefile.yml Explicitly name Postgres container volume (#33954) 2025-10-02 09:29:00 -04:00
docker-compose.pgvector.yml Add support for pgvector in local dev (#33900) 2025-09-15 18:58:43 +00:00
docker-compose.yaml selinux security context fixes in docker compose (#34394) 2025-11-14 17:32:56 +01:00
go.mod Update golang.org/x/crypto (#34838) 2026-01-05 16:09:22 +02:00
go.sum Update golang.org/x/crypto (#34838) 2026-01-05 16:09:22 +02:00
Makefile Bumping prepackaged Jira Plugin version to v4.5.0 (#34803) 2025-12-19 16:23:55 +02:00
path.go Centralize the GetPackagePath (#27004) 2024-05-15 12:05:13 -03:00