[gen] Bugfix: one could authentify with a ldap user even if ldap.enabled was False.
This commit is contained in:
parent
30dbcb7dc7
commit
307f4e152e
5 changed files with 17 additions and 15 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue