You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is due to the fact that selecting "Acnowledge all cards" it is called the method AcknowledgeService.isAcknowledgmentAllowed(..) that is different from the local method isAcknowledgmentAllowed() used in card-ack component to show the acknowledge button (modificato) 11:40
AcknowledgeService.isAcknowledgmentAllowed(user: UserWithPerimeters, card: Card | LightCard, processDefinition: Process): boolean {
if (!processDefinition) return true;
const state = processDefinition.states.get(card.state);
if (state) {
if (state.acknowledgmentAllowed === AcknowledgmentAllowedEnum.NEVER) return false;
if (state.acknowledgmentAllowed === AcknowledgmentAllowedEnum.ALWAYS) return true;
return !UserPermissionsService.isUserEnabledToRespond(user, card, processDefinition);
}
return true;
} (modificato) 11:40
private isAcknowledgmentAllowed(): boolean {
if (!this.cardState.acknowledgmentAllowed) return true;
return (
this.cardState.acknowledgmentAllowed === AcknowledgmentAllowedEnum.ALWAYS ||
(this.cardState.acknowledgmentAllowed === AcknowledgmentAllowedEnum.ONLY_WHEN_RESPONSE_DISABLED_FOR_USER &&
(this.isReadOnlyUser || !this.isUserEnabledToRespond || (this.isUserEnabledToRespond && this.lttdExpiredIsTrue)))
);
}
The text was updated successfully, but these errors were encountered:
The issue is due to the fact that selecting "Acnowledge all cards" it is called the method AcknowledgeService.isAcknowledgmentAllowed(..) that is different from the local method isAcknowledgmentAllowed() used in card-ack component to show the acknowledge button (modificato)
11:40
AcknowledgeService.isAcknowledgmentAllowed(user: UserWithPerimeters, card: Card | LightCard, processDefinition: Process): boolean {
if (!processDefinition) return true;
const state = processDefinition.states.get(card.state);
if (state) {
if (state.acknowledgmentAllowed === AcknowledgmentAllowedEnum.NEVER) return false;
if (state.acknowledgmentAllowed === AcknowledgmentAllowedEnum.ALWAYS) return true;
return !UserPermissionsService.isUserEnabledToRespond(user, card, processDefinition);
}
return true;
} (modificato)
11:40
private isAcknowledgmentAllowed(): boolean {
if (!this.cardState.acknowledgmentAllowed) return true;
return (
this.cardState.acknowledgmentAllowed === AcknowledgmentAllowedEnum.ALWAYS ||
(this.cardState.acknowledgmentAllowed === AcknowledgmentAllowedEnum.ONLY_WHEN_RESPONSE_DISABLED_FOR_USER &&
(this.isReadOnlyUser || !this.isUserEnabledToRespond || (this.isUserEnabledToRespond && this.lttdExpiredIsTrue)))
);
}
The text was updated successfully, but these errors were encountered: