You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not 100% sure wether this is a bug or intended behavior, so please correct me if I'm wrong.
I've a huge cloud function to setup my initial roles. At line 386 I add 2 relations to the "customer" role ("admin" role AND "merchant" role).
But when looking at my DB (_Join:roles:_Role collection) after running the function, it seems that only the 1st relation between the "customer" and "admin" role has been set (customerRole.getRoles().add(globAdminRole);) but NOT the 2nd relation between "customer" and "merchant" role (customerRole.getRoles().add(globMerchantRole);)
From what I understand when reading the docs I would assume that if I call the add() function twice it would add both relations.
(sidenote)
I could work around that for now by adding both relations as an array like this:
Environment Setup
Parse Server 2.2.2
Steps to reproduce
I'm not 100% sure wether this is a bug or intended behavior, so please correct me if I'm wrong.
I've a huge cloud function to setup my initial roles. At line 386 I add 2 relations to the "customer" role ("admin" role AND "merchant" role).
But when looking at my DB (
_Join:roles:_Role
collection) after running the function, it seems that only the 1st relation between the "customer" and "admin" role has been set (customerRole.getRoles().add(globAdminRole);
) but NOT the 2nd relation between "customer" and "merchant" role (customerRole.getRoles().add(globMerchantRole);
)From what I understand when reading the docs I would assume that if I call the add() function twice it would add both relations.
(sidenote)
I could work around that for now by adding both relations as an array like this:
Logs/Trace
The text was updated successfully, but these errors were encountered: