Only show "all" emails if config says to use the entry points

otherwise traditional behavior needs to be preserved as the default,
for now...
This commit is contained in:
Lance Edgar 2022-08-06 19:18:49 -05:00
parent d52a186e12
commit dd2631d27c

View file

@ -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()