Skip to content

Commit

Permalink
handle subcontractor parameter in user provisionning API
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalfox committed Dec 29, 2023
1 parent 8e94538 commit 7938095
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion people/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def consultant_provisioning(request):
trigramme = request.POST["trigramme"].upper(),
company = Subsidiary.objects.get(code=request.POST["company"],),
profil = ConsultantProfile.objects.get(name=request.POST["profile"]),
productive = request.POST.get("productive", True))
productive = request.POST.get("productive", True),
subcontractor = request.POST.get("subcontractor", False))
consultant.save()
if request.headers.get("Dry-Run"):
raise Exception("Dry-Run, rollback user creation")
Expand Down

0 comments on commit 7938095

Please sign in to comment.