Skip to content

Commit

Permalink
Fix the candidate not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Nov 20, 2024
1 parent 9a7a552 commit 3ce8456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/hub/social_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def update_user_org(user, org: Organization, token: str, *, in_auth_flow: bool =
user.organization = org
user.save()

if org.candidate:
if hasattr(org, "candidate") and org.candidate:
org.candidate.update_users_permissions()
else:
org = create_user_org(user)
Expand Down

0 comments on commit 3ce8456

Please sign in to comment.