Collection Access Control #2722
Unanswered
thenaazimkhan
asked this question in
Q&A
Replies: 1 comment
-
also after creating the first user in the admin's collection, I am not able to perform updates and delete the existing admin user and I can create a new user in the admin collection using the admin panel. getting the same error. ![]() ![]() I am using the as documented here ![]() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, The access control function is working as expected on my local development, once I deployed my app to the production server, I am not able to perform create, update, and delete opration getting the below error
I can't seem to get Payload to work on the Ubuntu 20.04 server platform as expected in production. It seems the user in the request object isn't getting passed to the access functions for all create, update and delete but my same access control logic is working fine for the read access function. from the console log it seems that req.user is undefined for all create, update and delete not for the read.
I have two collections (Admin and User)
I can't figure out why it is working fine on my local development.
I am using the Admin panel provided by the payload.
System:
Local
Production
Did anyone get any ideas? or am I missing something in the payload configuration?
here is my payload.config.ts
Beta Was this translation helpful? Give feedback.
All reactions