Skip to content

Commit 585c4d5

Browse files
committed
Merge pull request #94 from IGZalejandrogonzalez/master
pass roles from request to user before creating the user
2 parents 5177a8f + 59845b0 commit 585c4d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/managers/user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ function createUserPrivateCall(body, user, cbk) {
293293

294294
log.info(`<= ${private_res.statusCode}`);
295295
user.id = body.id;
296+
user.roles = body.roles || [];
296297

297298
if (!user.password) {
298299
user.password = cryptoMng.randomPassword(config.password.regexValidation);

0 commit comments

Comments
 (0)