[SOLVED] User invited to team has access to team Permissions, but can't list team members
- 0
- Databases
- Accounts
- Web
When a user is invited to a team, they immediately (without having accepted the invite) can access resources tagged with Role.team(teamId)
, however teams.listMemberships(teamId)
fails until they accept.
I would expect users not to have access to those resources until they accept. Is this intended behaviour?
yes, they shouldn't have access to resources. how are you adding users?
teams.createMembership(
id,
[],
email,
undefined,
undefined,
"http://localhost:5173/accept_team_invitation",
);
This is using a client SDK?
Yep, from Web
Oh, wait, I'm an idiot - Permission.read(Role.any())
[SOLVED] User invited to team has access to team Permissions, but can't list team members
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...