Fix infinite loop before sending mail caused by integrated actions with no app right

This commit is contained in:
Hadi Nategh 2021-04-27 11:51:16 +02:00
parent cf601b721b
commit aaf22ceb77

View File

@ -5595,6 +5595,11 @@ app.classes.mail = AppJS.extend(
return true; return true;
} }
} }
// the to_tracker action might not be presented because lack of app permissions
else if(integApps[index] == "to_tracker" && !toolbar.options.actions[integApps[index]])
{
return false;
}
else if(index<integApps.length) else if(index<integApps.length)
{ {
this.compose_integrate_submit(++index); this.compose_integrate_submit(++index);