From 142dd9b214edcb6c2aeb0e9d26463fc91903ccd5 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 14 Jun 2021 15:29:14 +0100 Subject: [PATCH] Removing the ability to set a role ID from within an app. --- packages/server/src/api/controllers/user.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/server/src/api/controllers/user.js b/packages/server/src/api/controllers/user.js index a7dcc190ba..4a00c16426 100644 --- a/packages/server/src/api/controllers/user.js +++ b/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,