Merge pull request #2890 from Gutttlt/patch-1
Fixing "'Role' object has no attribute 'set_third_party'" error on LDAP authentication.
This commit is contained in:
commit
99f46c1add
|
@ -105,7 +105,7 @@ class LdapPrincipal:
|
||||||
role = role_service.get_by_name(self.ldap_default_role)
|
role = role_service.get_by_name(self.ldap_default_role)
|
||||||
if role:
|
if role:
|
||||||
if not role.third_party:
|
if not role.third_party:
|
||||||
role = role.set_third_party(role.id, third_party_status=True)
|
role = role_service.set_third_party(role.id, third_party_status=True)
|
||||||
roles.add(role)
|
roles.add(role)
|
||||||
|
|
||||||
# update their 'roles'
|
# update their 'roles'
|
||||||
|
|
Loading…
Reference in New Issue