mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 09:13:23 +03:00
feat: Add ability to ignore roles when logging in with SSO (#534)
Closes #533
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user