From what I can see, is it possible to set the $permissions
manually when creating execution using serverside apis?
It's not possible from what I can see
It looks like you can't
What would be the value of the $permissions
if I create the execution from the server?
An empty array?
Yep
Did you already check it out before?
By the way, which panel is shown in this image? Is it something viewable on appwrite cloud? I mean the panel as you've shown it
Yes, I've checked
This PHPStorm uses the DataGrip software to view my self-hosted Appwrite instance.
Any way, thanks for helping
<a:agooglethumbsup:635256484682530825>
One last thing, what is the purpose of the async option when creating function execution? If it is set to false, does it mean that I can directly await the execution in my code and access the final response directly?
Yes, exactly.
For example
Let's say you have a function that need to get something protect from the DB Then you'll probably want the function to be executed in sync mode.
But if you have a function that can take time
Then you'll execute it in async.
Then you can use the getExecution
to see if it finished.
Yeah, I get that
Thanks once again
I also saw something in the thread you linked about the person setting execute access to users
and still not able to execute the function on the client saying that only guests
and any
are allowed, is that some bug, or did I get it wrong?
It's not a bug more like a feature 😉
What I mean is that it's a bug if you want to be able to get the execution status for guests. But, is actually a feature meant to protect the execution data.
So, in case you'll need to have that information for guests, you can tunnel it thorugh a function.
Okay then, thanks
[SOLVED] About function execution permissions
One quick question, whe using Query.select()
, are meta fields like $permission
still returned even if they've not been included in the list of fields to be selected?
Okay, thanks
Looks like thats a bug in the model example...would you be able to create an issue for that?
I'm kinda busy at the moment, but will see to it later, hopefully.
I'll file the issue on appwrite/appwrite, right?
Recommended threads
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...