Fixing "'Role' object has no attribute 'set_third_party'" error.

This commit is contained in:
Gutttlt 2020-01-21 08:40:54 +01:00 committed by GitHub
parent d9990bc075
commit 71f43dfcc1
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'