1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 05:09:43 +02:00

feat: Add ability to ignore roles when logging in with SSO (#534)

Closes #533
This commit is contained in:
Balthasar Hofer 2023-10-25 23:01:35 +02:00 committed by GitHub
parent 43f196c9e6
commit e41a434fc8
5 changed files with 9 additions and 0 deletions

View file

@ -92,6 +92,11 @@ module.exports = {
const updateFieldKeys = ['email', 'isAdmin', 'isSso', 'name', 'username'];
if (sails.config.custom.oidcIgnoreRoles) {
// Remove isAdmin from updateFieldKeys
updateFieldKeys.splice(updateFieldKeys.indexOf('isAdmin'), 1);
}
const updateValues = {};
// eslint-disable-next-line no-restricted-syntax
for (const k of updateFieldKeys) {