Skip to content

Commit

Permalink
Fixing "'Role' object has no attribute 'set_third_party'" error.
Browse files Browse the repository at this point in the history
  • Loading branch information
gutttlt committed Jan 21, 2020
1 parent d9990bc commit 71f43df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lemur/auth/ldap.py
Expand Up @@ -105,7 +105,7 @@ def _authorize(self):
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'
Expand Down

0 comments on commit 71f43df

Please sign in to comment.