do not try drupal or ezldap auth if the options are not enabled
This commit is contained in:
parent
c71df2fa09
commit
4b0f675617
|
@ -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:
|
||||
|
|
Reference in New Issue