Skip to content

Commit

Permalink
[Fixes #11995] Implement endpoint to transfer ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
RegisSinjari committed Mar 20, 2024
1 parent 6615d75 commit 544bb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/people/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def transfer_resources(self, request, pk=None):
return Response("Cannot reassign to self", status=400)

# transfer to target
ResourceBase.objects.filter(owner=user).update(owner=target)
ResourceBase.objects.filter(owner=user).update(owner=target or user)

return Response("Resources transfered successfully", status=200)

Expand Down

0 comments on commit 544bb60

Please sign in to comment.