Keep getting "You are not allowed to perform this action." when trying to save. #719
-
I hosted Payload on Northflank, I'm able to access it and created a login but whenever I try to create a new document in Payload and save it I get the following in the logs:
What could be the issue? If you need anything other info, please let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
for me this usually happens because of two reasons (Rest API).
|
Beta Was this translation helpful? Give feedback.
-
This issue is related to your access control. By default, access control requires a user to be logged in, which should be the case if you're saving from the admin. Here's where I'd start troubleshooting from:
Other related questions:
|
Beta Was this translation helpful? Give feedback.
-
Added the following to the collection after @denolfe reminded me of the custom access control rules and it is working now! access: {
read: () => {
return true;
},
create: () => {
return true;
},
delete: () => {
return true;
},
update: () => {
return true;
},
} Is there a better way to set this up? I know theres access control you can add to the |
Beta Was this translation helpful? Give feedback.
-
Fixed. I had put the wrong url in the env variable for serverURL. |
Beta Was this translation helpful? Give feedback.
Fixed.
I had put the wrong url in the env variable for serverURL.