We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b30675 commit d008affCopy full SHA for d008aff
src/client.js
@@ -43,6 +43,8 @@ const CoCreateUser = {
43
44
// const socket = Crud.socket.getSockets()
45
// if (!socket[0] || !socket[0].connected || window && !window.navigator.onLine) {
46
+
47
+ // ToDo: remove roles handling from client and implement a serverside solution similar to lazyloader webooks processOperators
48
let key = {
49
status: 'await',
50
method: 'object.create',
@@ -51,7 +53,7 @@ const CoCreateUser = {
51
53
_id: user.object[0]._id,
52
54
type: "user",
55
key: user.object[0]._id,
- roles: user.object[0].roles,
56
+ roles: user.object[0].roles || [user.object[0]['roles[]']],
57
email: user.object[0].email,
58
password: user.object[0].password || btoa('0000'),
59
array: user.array
0 commit comments