Skip to content

Commit

Permalink
Merge pull request #78 from Totaljs-Spain/master
Browse files Browse the repository at this point in the history
Fixed problem with groups.
  • Loading branch information
petersirka authored Apr 6, 2024
2 parents ab33a9c + 09ed454 commit 6c48ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/setup/schemas/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ NEWACTION('Users/update', {

await DATA.check('op.tbl_user').where('email', model.email).where('id', '<>', params.id).where('isremoved=FALSE').error('@(E-mail address is already used)', true).promise($);

var groups = model.groups;
var groups = model.groups || EMPTYARRAY;
var iswelcome = model.iswelcome == true;

if (model.ispassword)
Expand Down Expand Up @@ -195,4 +195,4 @@ NEWACTION('Users/logout', {
await DATA.remove('op.tbl_session').where('userid', params.id).promise($);
$.success(params.id);
}
});
});

0 comments on commit 6c48ead

Please sign in to comment.