Browse Source

Removing the ability to set a role ID from within an app.

pull/1711/head
mike12345567 5 years ago
parent
commit
9a5a005e8f
  1. 3
      packages/server/src/api/controllers/user.js

3
packages/server/src/api/controllers/user.js

@ -53,9 +53,6 @@ exports.updateMetadata = async function (ctx) {
const appId = ctx.appId
const db = new CouchDB(appId)
const user = removeGlobalProps(ctx.request.body)
if (user.roleId) {
await addAppRoleToUser(ctx, appId, user.roleId, user._id)
}
const metadata = {
tableId: InternalTables.USER_METADATA,
...user,

Loading…
Cancel
Save