fix: ensure that all committee members get teh right role
This commit is contained in:
parent
30287466cb
commit
262eb0c991
1 changed files with 5 additions and 0 deletions
|
@ -312,6 +312,11 @@ pub mod committee {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !roles_required.is_empty() {
|
||||||
|
// if there are committee roles then give the general purporse role
|
||||||
|
roles_add.push(committee_member);
|
||||||
|
}
|
||||||
|
|
||||||
for role in &roles_required {
|
for role in &roles_required {
|
||||||
if !roles_current_id.contains(role) {
|
if !roles_current_id.contains(role) {
|
||||||
roles_add.push(role.to_owned());
|
roles_add.push(role.to_owned());
|
||||||
|
|
Loading…
Add table
Reference in a new issue