1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +13:00

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

This commit is contained in:
mike12345567 2021-06-14 15:29:14 +01:00
parent b0bb2a23db
commit 142dd9b214

View file

@ -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,