cannot create a document with permission even though there is a user session
This is client side, right?
yes
Uh, I think that's the issue
You cannot set permissions for other people client sided
ohh thats why
So you will need a small function to create the document
my bad
Tell me if doing it server sided solves the issue
tried adding it on the appwrite cloud, it gives a server error
Maybe it's incorrect?
I think I found the problem
ahh nope it still gives an error
yes I found the problem
thank you
is there a way to add document permission in the client side?
I think not. Just permissions for the current user
Just to say functions are very easy to use
What was the problem?
the document has a relationship but the value was null, thats why its giving an error
Oh, I see
I'm still having a hard time understanding functions, mayble a little bit I integrate realtime to my thesis application π€£
β Error creating document with permission
[SOLVED] Error creating document with permission
Recommended threads
- The current user is not authorized to pe...
I want to create a document associated with user after log in with OAuth. The user were logged in, but Appwrite said user is unauthorized. User is logged in wi...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...