Jarrod Flesch
20b4de94ee
fix(plugin-multi-tenant): constrain results to assigned tenants when present ( #13365 )
...
Extension of https://github.com/payloadcms/payload/pull/13213
This PR correctly filters tenants, users and documents based on the
users assigned tenants if any are set. If a user is assigned tenants
then list results should only show documents with those tenants (when
selector is not set). Previously you could construct access results that
allows them to see them, but in the confines of the admin panel they
should not see them. If you wanted a user to be able to see a "public"
tenant while inside the admin panel they either need to be added to the
tenant or have no tenants at all.
Note that this is for filtering only, access control still controls what
documents a user has _access_ to a document. The filters are and always
have been a way to filter out results in the list view.
2025-08-05 09:00:36 -04:00
..
2025-07-25 18:33:53 +00:00
2025-07-30 05:52:01 -07:00
2025-07-29 11:30:07 -04:00
2025-05-19 12:36:40 -03:00
2025-07-09 10:39:02 -04:00
2024-11-16 15:30:05 -05:00
2025-06-05 09:19:19 -07:00
2025-07-29 16:27:45 -04:00
2025-04-08 17:25:29 -03:00
2025-05-19 12:36:40 -03:00
2025-07-24 14:00:52 -04:00
2025-06-05 09:19:19 -07:00
2025-06-19 09:18:29 +00:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-07-25 15:46:09 -07:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-08-01 16:04:51 +01:00
2025-05-19 12:36:40 -03:00
2025-07-30 05:52:01 -07:00
2025-07-24 14:00:52 -04:00
2025-07-25 09:08:22 -04:00
2025-06-05 09:19:19 -07:00
2025-08-01 16:04:51 +01:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-07-30 05:52:01 -07:00
2025-07-30 05:52:01 -07:00
2025-06-11 06:23:22 -07:00
2025-07-30 05:52:01 -07:00
2024-10-30 17:56:50 +00:00
2025-08-01 18:05:54 +03:00
2025-07-30 13:16:18 +00:00
2025-05-19 12:36:40 -03:00
2025-07-30 05:52:01 -07:00
2025-07-30 05:52:01 -07:00
2025-05-19 12:36:40 -03:00
2025-07-24 14:00:52 -04:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-07-24 11:36:46 -04:00
2025-08-05 09:00:36 -04:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-07-30 05:52:01 -07:00
2025-07-30 16:23:43 +03:00
2025-07-25 09:10:21 -04:00
2025-07-23 16:48:25 -07:00
2025-06-27 09:13:52 -04:00
2025-07-29 03:25:09 +00:00
2025-07-10 08:00:26 -07:00
2025-07-10 08:00:26 -07:00
2025-07-10 08:00:26 -07:00
2025-07-10 08:00:26 -07:00
2025-07-10 08:00:26 -07:00
2025-07-30 14:11:11 -07:00
2025-06-29 14:20:54 -04:00
2025-08-04 23:47:37 -04:00
2025-08-02 12:01:48 -07:00
2025-06-04 17:34:37 -03:00
2025-06-05 22:01:55 -03:00
2024-12-31 09:14:56 -05:00
2025-07-30 05:52:01 -07:00
2025-07-16 15:17:43 -04:00
2025-07-16 15:17:43 -04:00
2025-03-05 19:14:35 +00:00
2024-09-16 17:02:08 +00:00
2025-07-24 14:00:52 -04:00
2025-07-18 06:48:27 -04:00
2024-11-11 13:59:05 -05:00
2024-10-11 18:54:39 +00:00
2025-02-17 19:50:32 +00:00
2024-10-11 18:54:39 +00:00
2024-12-17 14:49:29 -05:00
2025-07-11 16:34:55 -04:00
2025-07-28 16:23:43 +00:00
2025-02-07 03:24:49 +00:00
2025-06-05 22:01:55 -03:00
2025-07-18 06:48:27 -04:00
2024-10-14 20:02:26 +00:00
2025-03-05 19:14:35 +00:00
2025-05-12 09:41:18 -04:00
2025-02-14 00:08:20 +00:00
2025-01-14 20:00:00 -03:00
2025-03-05 19:14:35 +00:00