diff --git a/src/services/service.ts b/src/services/service.ts index 171bbf0..1b9ae30 100755 --- a/src/services/service.ts +++ b/src/services/service.ts @@ -1284,8 +1284,10 @@ export default class Services { for (const state of process.states) { if (!state.state_id || state.state_id === EMPTY32BYTES) { continue; } if (!this.lookForStateId(existing, state.state_id)) { - new_states.push(state.state_id); - roles.push(state.roles); + if (this.rolesContainsUs(state.roles)) { + new_states.push(state.state_id); + roles.push(state.roles); + } } }