[gen] Bugfix: one could authentify with a ldap user even if ldap.enabled was False.

This commit is contained in:
Gaetan Delannay 2015-01-21 14:30:42 +01:00
parent 30dbcb7dc7
commit 307f4e152e
5 changed files with 17 additions and 15 deletions

View file

@ -1244,7 +1244,9 @@ class AbstractWrapper(object):
o = self.o
workflow = o.getWorkflow()
for name in dir(workflow):
if getattr(workflow, name).__class__.__name__ != 'State': continue
state = getattr(workflow, name)
if state.__class__.__name__ != 'State': continue
if state.isIsolated(workflow) : continue
res.append((name, o.translate(o.getWorkflowLabel(name))))
return res