Fix persist plugin removing already-granted roles
Specifically, the mute role granted by the mutes plugin.
This commit is contained in:
parent
0818b0479b
commit
5bc0f335d2
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
Reference in a new issue