Teams object does not get passed down to authsome module
I have a problem where the teams object does not get passed down to my authsome module correctly.
I initiate a request to create teams after the creation of a new collection.
In the pubsweet server, when authsome.can
is executed, the object is fine.
ie. an array of team objects
By the time is gets to the authsome module though, the object has transformed into this
{0: "t", 1: "e", 2: "a", 3: "m", 4: "s"}
The same thing happens for users, but not for collections.
Any idea on what happens in betweeen the .can
call and being inside the authsome module?
Might be unrelated, but in the backend I see something along the lines of
User john cannot create undefined undefined
These undefined
values, is because the object is a simple array, and has no object.type
etc.