Repository navigation
Conversation
There was a problem hiding this comment.
I get this error when visiting the admin panel:

I was actually able to visit the admin panel initially and then once I clicked into a document and tried to edit a field I got this error. But now I can't access it at all even after deleting my .next folder and re-running pnpm dev.
I can recreate the same behavior in the preview environment by visiting any page document: https://update-payload.preview.avy-fx.org/admin/collections/pages/108
I'm assuming the behavior of the multi tenant plugin changed slightly as part of this upgrade. That function should be optional though: https://payloadcms.com/docs/plugins/multi-tenant#:~:text=userHasAccessToAllTenants%3F%3A,176
We don't use that because we determine the tenants a user has access to base on tenant scoped roles and we don't have a tenants relationship on the users collection like the multi tenant plugin expects. That's why we don't just use the multi tenant plugin directly.
| baseListFilter: filterByTenant, | ||
| group: 'Content', | ||
| }, | ||
| trash: true, |
There was a problem hiding this comment.
What happens to these files in Vercel Blob if they're soft deleted? Probably nothing?
Do we need to update any of our queries to respect the trash field? https://payloadcms.com/docs/trash/overview#:~:text=%7D)-,Return%20only%20non%2Dtrashed%20documents%3A,-1
| hash?: string | null; | ||
| loginAttempts?: number | null; | ||
| lockUntil?: string | null; | ||
| sessions?: |
There was a problem hiding this comment.
What is the effect of this on user sessions?
There was a problem hiding this comment.
From the release notes:
🚨 Notice 🚨
If your project uses the local auth strategy with db-postgres or db-sqlite, a migration is required. This is due to a new security feature (enabled by default) that stores a unique auth session identifier in the database.
To opt out and continue using the previous behavior, you can disable the feature by setting auth.useSessions: false in your users collection config.
af5df7e to
92d8e70
Compare
92d8e70 to
3b84104
Compare
|
Closing because we need more time to figure this out.
We should file a payload issue |
Note
See comment below why this is closed.
Description
Updates payload to 3.52.0. Takes advantage of such features as
groupByin collections from (v3.49.0)user_sessionsin (v3.44.0)Only updates plugin-multi-tenant to 3.49.0 to avoid a breaking change in 3.50.0
Issue
Resolves #339 in v3.51.0