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:
Hossein Shafagh 2020-01-21 08:17:30 -08:00 committed by GitHub
commit 99f46c1add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class LdapPrincipal:
role = role_service.get_by_name(self.ldap_default_role)
if role:
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)
# update their 'roles'