mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
feat: Add ability to ignore roles when logging in with SSO (#534)
Closes #533
This commit is contained in:
parent
1a49826b85
commit
d4b64b90fc
5 changed files with 9 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue