Rank 2: Process
Hi! Following is my code:
await databases.createDocument( 'DB_ID', 'COLLECTION_ID', user.$id, { name: user.name, age: 20, college: 'Harvard' }, [Permission.update(Role.user(user.$id))]);```
But I'm getting this error: `AppwriteException: Permissions must be one of: (any, guests)`. Any idea what's up? Note that, I'm creating the account immediately before this, with `user = await account.create(...)`