Browse Source
Merge pull request #3614 from Budibase/fix/delete-user
Add fix for user metadata sync when deleting
gh-pages
Rory Powell
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
packages/server/src/api/controllers/user.js
|
|
|
@ -81,7 +81,7 @@ exports.syncUser = async function (ctx) { |
|
|
|
throw err |
|
|
|
} |
|
|
|
} |
|
|
|
const roles = user.roles |
|
|
|
const roles = deleting ? {} : user.roles |
|
|
|
// remove props which aren't useful to metadata
|
|
|
|
delete user.password |
|
|
|
delete user.forceResetPassword |
|
|
|
|