Back

Function Execute Access Resets After Deploy

  • 1
  • Web
Dennis Ivy
13 Jul, 2023, 00:46

Is there a specific reason why my function execute access completely resets after each deploy?

This is the series of events:

  1. I set execute Access to role of "Any"
  2. I deploy function
  3. All permissions set are removed

I have to re-add roles each time after deploying a function

TL;DR
Solution: To prevent the function execute access from resetting after each deploy, add the `any` property to the `execute` property in your `appwrite.json` file. This is the expected behavior, and by adding `any`, the permissions will not change during deployment.
Binyamin
13 Jul, 2023, 00:48

This is actually an expected behavior. If you don't want it to change in any deployment add any to execute property in your appwrite.json file

Binyamin
13 Jul, 2023, 00:48

Then try to redeploy and check that everything's in order

Dennis Ivy
13 Jul, 2023, 00:51

Oh! interesting, I didn't catch this in the doc's anywhere. Seem's to work, thank to Binyamin πŸ™

Binyamin
13 Jul, 2023, 00:52

<:appwriteupvote:899677724615016528>

Binyamin
13 Jul, 2023, 00:52

I also discover it by mistake as I noticed my permissions get deleted any time I was deployed a new version

Dennis Ivy
13 Jul, 2023, 00:54

I'll make sure to address this in future tutorials as I would imagine others would run into the same issue

Binyamin
13 Jul, 2023, 00:56

P.s. I've seen some of your videos, they are pleasant to watch.

Dennis Ivy
13 Jul, 2023, 00:57

Thank you 😊

Drake
13 Jul, 2023, 01:08
Dennis Ivy
13 Jul, 2023, 01:28

Makes perfect sense

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more