-
Notifications
You must be signed in to change notification settings - Fork 0
Nasty regression detected when moving from 2.x to 3.x mongoose #1
Copy link
Copy link
Open
Description
The grant access method fails. It seems that it does not take the change in an array. See output here:
◦ should add a write role: -----------------------------------
LOOKING FOR AT
CREATED NEW AT
SOURCE - TYPE: {"name":"test","accessibleBy":[{"actor":{"objectType":"public","actorId":"*"},"roles":["read"]},{"actor":{"displayName":"","objectType":"person","actorId":"frankid"},"_id":"507ad8ec86c0728271000012","roles":[]}],"_id":"507ad8ec86c0728271000011"}
ACCESSIBLE TYPE: {"actor":{"actorId":"frankid","objectType":"person","displayName":""},"roles":[]}
ROLES TO ADD: ["write"]
EXISTING ROLES: []
NEW ROLES: ["write"]
SOURCE - SELF: {"name":"test","accessibleBy":[{"actor":{"objectType":"public","actorId":"*"},"roles":["read"]},{"actor":
{"displayName":"","objectType":"person","actorId":"frankid"},"_id":"507ad8ec86c0728271000012","roles":[]}],"_id":"507ad8ec86c0728271000011"}
The last one should have a role of write in it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels