@fluxhub/fluxhub-lib 19.0.234 → 19.0.235
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27829,6 +27829,15 @@ class WkfService {
|
|
|
27829
27829
|
task: task,
|
|
27830
27830
|
msg: "Attivita' bloccata da una dipendenza aperta",
|
|
27831
27831
|
});
|
|
27832
|
+
// Stessa regola del pannello: senza un ruolo abilitato sull'attivita'
|
|
27833
|
+
// non si chiude. Il servizio non si fida del chiamante — chi deve agire
|
|
27834
|
+
// per conto del sistema lo dichiara con `force`.
|
|
27835
|
+
if (!opts.force && Number(task.can_close || 0) <= 0)
|
|
27836
|
+
return of({
|
|
27837
|
+
ok: false,
|
|
27838
|
+
task: task,
|
|
27839
|
+
msg: "Nessun ruolo abilitato su questa attivita'",
|
|
27840
|
+
});
|
|
27832
27841
|
return this.claim_task(id_applicativo, id_documento, task, step, opts.username).pipe(switchMap((claim) => {
|
|
27833
27842
|
if (!claim.ok)
|
|
27834
27843
|
return of({
|