-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
Goals
Giver permission to a user
Expected Results
Throw an error if user does not exist
Actual Results
The desired folder has public permission applied
Steps to Reproduce
- Create admin user
- Create a folder
- Try to give access to the folder using a non-existent userId
Code Sample
const adminUser = await Realm.Sync.User.login( `https://${server_address}`, "admin", "admin" ); const path = `realms://${server_address}/chat`; adminUser .applyPermissions({ userId: "NONEXISTENTUSER" }, "/chat", "read") .then((permissionChange) => { console.log(permissionChange); }) .catch((error) => { console.log(error); // ... });
Results of above code:
](url)
Version of Realm and Tooling
- Realm JS SDK Version: 6.0.2
- Node or React Native: Node
- Client OS & Version: 12.16.1[