From dd2631d27c7141bda7560acc2eb0ca99aeb8eaf4 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 6 Aug 2022 19:18:49 -0500 Subject: [PATCH] Only show "all" emails if config says to use the entry points otherwise traditional behavior needs to be preserved as the default, for now... --- tailbone/views/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/email.py b/tailbone/views/email.py index a6620932..b3135d6a 100644 --- a/tailbone/views/email.py +++ b/tailbone/views/email.py @@ -100,7 +100,7 @@ class EmailSettingView(MasterView): def get_data(self, session=None): data = [] - if self.has_perm('configure'): + if self.has_perm('configure') and self.email_handler.use_entry_points(): emails = self.email_handler.get_all_emails() else: emails = self.email_handler.get_available_emails()