Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
fix(richtext-lexical): blocksFeature with relationship exposes other tenants (#14985)
Fixes #14823 The issue is essentially the same problem that PR #13229 fixed, but for a different Lexical feature: | PR #13229 | PR #14985 (this one) | | --- | --- | | Link Feature with internal links | BlocksFeature with relationship fields inside blocks | | Relationship to documents exposes other tenants | Relationship inside blocks exposes other tenants | ## Root Cause The multi tenant plugin applies tenant filters to relationship fields using `addFilterOptionsToFields()`, which only runs on collection fields. However: - BlocksFeature defines blocks via feature props rather than collection fields - These blocks are processed independently through `sanitizeFields()` - Relationship fields inside blocks never receive the collection baseFilter
G
German Jablonski committed
302537700227330ddf02b303014c9d4e4113a6d6
Parent: f111624
Committed by GitHub <noreply@github.com>
on 12/19/2025, 3:44:55 PM