Skip to content

Commit ef639ca

Browse files
committed
Update backend_ldap_utils.py
1 parent 675868a commit ef639ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/backend_ldap_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def returncode(code,message):
4444
def is_backend_concerned(entity):
4545
peopleType=find_key(entity,config('branchAttr'))
4646
listBackend=config('backendFor')
47+
if type(peopleType) is list:
48+
peopleType=peopleType[0]
4749
if (listBackend.find(peopleType) == -1):
4850
return False
4951
return True

0 commit comments

Comments
 (0)