mirror of
https://github.com/plankanban/planka.git
synced 2025-07-23 07:09:44 +02:00
fix: Disable role change when OIDC roles are not ignored
This commit is contained in:
parent
d4b64b90fc
commit
6dc9e4ed99
9 changed files with 23 additions and 20 deletions
|
@ -73,6 +73,10 @@ module.exports = {
|
|||
delete inputs.name;
|
||||
/* eslint-enable no-param-reassign */
|
||||
} else if (user.isSso) {
|
||||
if (!sails.config.custom.oidcIgnoreRoles) {
|
||||
delete inputs.isAdmin; // eslint-disable-line no-param-reassign
|
||||
}
|
||||
|
||||
delete inputs.name; // eslint-disable-line no-param-reassign
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue