prompt
stringlengths 3
156k
|
---|
Is GE Healthcare Cross Functional structure |
who was Jan Hammer |
def delete(self, request , docId):
try:
# Retrieve the comment by Firestore document ID
comment = get_object_or_404("Comments", firestore_id = docId)
# Check if the user making the request is the owner of the comment
if comment.user == request.user:
# Delete the comment
comment.delete()
return JsonResponse({'message': 'Comment deleted successfully'})
else:
return JsonResponse({'error': 'You do not have permission to delete this comment'}, status=403)
except Comment.DoesNotExist:
return JsonResponse({'error': 'Comment not found'}, status=404) |
Geopolitics of Libya Top 5 in 2015 |