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:
parent
d52a186e12
commit
dd2631d27c
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue