do not try drupal or ezldap auth if the options are not enabled

This commit is contained in:
Frédéric Péters 2013-04-03 08:57:23 +02:00
parent c71df2fa09
commit 4b0f675617
1 changed files with 4 additions and 2 deletions

View File

@ -739,8 +739,10 @@ class AlternateRootDirectory(OldRootDirectory):
invoices = InvoicesDirectory()
def _q_traverse(self, path):
drupal.try_auth()
ezldap_ui.try_auth(self)
if get_publisher().has_site_option('drupal'):
drupal.try_auth()
if get_publisher().has_site_option('ezldap'):
ezldap_ui.try_auth(self)
session = get_session()
if session: