Collection and global access gets out of sync in admin panel if the access depends on content #2191
Replies: 2 comments 2 replies
-
This issue is related a problem in plugin I'm developing: joas8211/payload-tenancy#2 |
Beta Was this translation helpful? Give feedback.
-
Hey @joas8211 — I think the move here would be to open up a way to automatically re-fetch permissions, so that in your own custom components, you can re-request them at your discretion. Handling this automatically every time a global or a collection document updates would make for quite a few unnecessary requests, so this is unlikely something that we will be able to solve internally within Payload, but a This is more of a feature request though rather than an issue with Payload core, because as of now this is functioning as-intended. So I'll convert this to a discussion and tag it accordingly. However, I do think that the idea above, manually being able to re-fetch permissions, is pretty solid and we would happily accept a feature to build it. Not sure when the Payload team will be able to get to this, but i will keep it on our radar regardless. What do you think? Would you be up for creating a PR for this? Otherwise, maybe you could wire in an automatic full page refresh when you need to refresh permissions? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Report
Payload version: 1.6.15
Steps to Reproduce
Expected behaviour
Test global should have appeared in step 4.
Possible solution
Refresh access after a document is saved.
Beta Was this translation helpful? Give feedback.
All reactions