From 7bcb00c127d526c975aa72df5ada1cc37981a849 Mon Sep 17 00:00:00 2001 From: alexandre Date: Thu, 11 May 2023 08:55:11 +0200 Subject: [PATCH 1/2] refs #5655 removed relation --- back/methods/vn-user/acl.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/back/methods/vn-user/acl.js b/back/methods/vn-user/acl.js index 4f4bf0623..b72b19381 100644 --- a/back/methods/vn-user/acl.js +++ b/back/methods/vn-user/acl.js @@ -23,13 +23,7 @@ module.exports = Self => { let models = Self.app.models; let user = await Self.findById(userId, { - fields: ['id', 'name', 'nickname', 'email', 'lang'], - include: { - relation: 'userConfig', - scope: { - fields: ['darkMode'] - } - } + fields: ['id', 'name', 'nickname', 'email', 'lang'] }); let roles = await models.RoleMapping.find({ -- 2.40.1