only owners is allowed as team roles.... any ideas on why? i have members of team with other roles
let promise = databases.createDocument( '<DATABASE_ID>', '<COLLECTION_ID>', {'actorName': 'Chris Evans', 'height': 183}, [ Permission.read(Role.any()), // Anyone can view this document Permission.update(Role.team("writers")), // Writers can update this document Permission.update(Role.team("admin")), // Admins can update this document Permission.delete(Role.user("5c1f88b42259e")), // User 5c1f88b42259e can delete this document Permission.delete(Role.team("admin")) // Admins can delete this document ] );
Recommended threads
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- ACTIVATE DEPLOYMENT PROBLEM...
It's not giving me the option to activate a deployment that says it's ready..
- unlike any other provider, your sites DN...
your nameservers dont work with a funny little CNAME error, which is a weird bug but thats what you get when you try to be the kitchen sink, funny errors.