fix: ensure that all committee members get teh right role

This commit is contained in:
silver 2025-02-19 00:51:40 +00:00
parent 30287466cb
commit 262eb0c991
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -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 {
if !roles_current_id.contains(role) {
roles_add.push(role.to_owned());