When I try to change a user's team with createMembership and updateMembershipStatus, the user is somehow in the new team, but appwrite doesn't show a second member in the list + when I try to add any security to a document with the given team (e.g. Read Access), the user doesn't have access to it.
Running on Nuxt btw.
newRole is the Teamname
this.$appwrite.teams.createMembership(
newRole,
[
newRole, // Is this even necessary?
],
undefined,
userId,
undefined,
membershipUrl,
)
useAppwrite().teams.updateMembershipStatus(
teamId,
membershipId,
userId,
secret,
)
The appwrite call difference is because the create statement is on a page. And I handle the status update through a middleware :)
Recommended threads
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...