Rank 2: Process
cannot create a document with permission even though there is a user session
Votes
0
Replies
23
Participants
Unknown
Messages
24
Rank 2: Process
cannot create a document with permission even though there is a user session
Moderator
This is client side, right?
Rank 2: Process
yes
Moderator
Uh, I think that's the issue
Moderator
You cannot set permissions for other people client sided
Rank 2: Process
ohh thats why
Moderator
So you will need a small function to create the document
Rank 2: Process
my bad
Moderator
Tell me if doing it server sided solves the issue
Rank 2: Process
tried adding it on the appwrite cloud, it gives a server error
Moderator
Maybe it's incorrect?
Rank 2: Process
I think I found the problem
Rank 2: Process
ahh nope it still gives an error
Rank 2: Process
yes I found the problem
Rank 2: Process
thank you
Rank 2: Process
is there a way to add document permission in the client side?
Moderator
I think not. Just permissions for the current user
Moderator
Just to say functions are very easy to use
Moderator
What was the problem?
Rank 2: Process
the document has a relationship but the value was null, thats why its giving an error
Moderator
Oh, I see
Rank 2: Process
I'm still having a hard time understanding functions, mayble a little bit I integrate realtime to my thesis application 🤣
Rank 2: Process
✔ Error creating document with permission
Rank 2: Process
[SOLVED] Error creating document with permission