mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-18 15:45:03 +00:00
Fix persist plugin removing already-granted roles
Specifically, the mute role granted by the mutes plugin.
This commit is contained in:
parent
2599204b89
commit
0e5cc088d3
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ export class PersistPlugin extends ZeppelinPlugin<TConfigSchema> {
|
|||
const rolesToRestore = intersection(persistedRoles, persistedData.roles);
|
||||
if (rolesToRestore.length) {
|
||||
restoredData.push("roles");
|
||||
toRestore.roles = rolesToRestore;
|
||||
toRestore.roles = Array.from(new Set([...rolesToRestore, ...member.roles]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue