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
- Issue with Authentication
I am stuck with authentication using appwrite. I am getting bad request 400 error when trying to register though we already have project, database, collection c...
- getaddrinfo EAI_AGAIN when using axios
I have this code to make a get request to an API ```javascript function fetchUserListPerPage(page) { return new Promise(async (resolve, reject) => { ...
- Appwrite CLI not working as expected
Until yesterday I was authenticated in my Appwrite instance through the CLI, and I was able to get my functions and deploy them manually. Today, when I went ba...