Commit ed32cf21 authored by Gladys Forte's avatar Gladys Forte

Merge pull request #740 in RMS/api-main-service from core-dev-gladys to RMSv2

* commit 'b15db2f6':
  comment temp validation post
parents a9887149 b15db2f6
......@@ -345,18 +345,18 @@ class ChangeRequestTemplatePost(APIView):
template_header = request.data
try:
tmp_approvers = template_header['tmp_approvers']
# Do not allow adding an approver for the same level
validation_result = validation_approver_same_level(tmp_approvers)
if validation_result is not None:
message = {
'code': 400,
'status': 'failed',
'message': validation_result + ' is already existing for the same level of approval.',
}
return Response(message,
status=status.HTTP_400_BAD_REQUEST)
# tmp_approvers = template_header['tmp_approvers']
# # Do not allow adding an approver for the same level
# validation_result = validation_approver_same_level(tmp_approvers)
# if validation_result is not None:
# message = {
# 'code': 400,
# 'status': 'failed',
# 'message': validation_result + ' is already existing for the same level of approval.',
# }
# return Response(message,
# status=status.HTTP_400_BAD_REQUEST)
data_list_approver = []
data_list_stake = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment