mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
fix: Disable role change when OIDC roles are not ignored
This commit is contained in:
parent
e41a434fc8
commit
d951ba59dd
9 changed files with 23 additions and 20 deletions
|
@ -90,11 +90,9 @@ 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 updateFieldKeys = ['email', 'isSso', 'name', 'username'];
|
||||
if (!sails.config.custom.oidcIgnoreRoles) {
|
||||
updateFieldKeys.push('isAdmin');
|
||||
}
|
||||
|
||||
const updateValues = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue