From aaf22ceb77db246f3d1875338b2aeaeeba84b45d Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 27 Apr 2021 11:51:16 +0200 Subject: [PATCH] Fix infinite loop before sending mail caused by integrated actions with no app right --- mail/js/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mail/js/app.js b/mail/js/app.js index c7fb9cfc7b..26beb4c137 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -5595,6 +5595,11 @@ app.classes.mail = AppJS.extend( 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