Prevents special opes on LIQ
This commit is contained in:
parent
63cb7b7fd0
commit
aa29621c7c
|
@ -86,6 +86,9 @@ function getErrorsHtml(data) {
|
||||||
content += '<li>Montant invalide</li>';
|
content += '<li>Montant invalide</li>';
|
||||||
content += '</ul>';
|
content += '</ul>';
|
||||||
}
|
}
|
||||||
|
if ('account' in data['errors']) {
|
||||||
|
content += data['errors']['account'];
|
||||||
|
}
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1041,6 +1041,8 @@ def kpsul_perform_operations(request):
|
||||||
operationgroup.comment = operationgroup.comment.strip()
|
operationgroup.comment = operationgroup.comment.strip()
|
||||||
if not operationgroup.comment:
|
if not operationgroup.comment:
|
||||||
data['errors']['need_comment'] = True
|
data['errors']['need_comment'] = True
|
||||||
|
|
||||||
|
if data['errors']:
|
||||||
return JsonResponse(data, status=400)
|
return JsonResponse(data, status=400)
|
||||||
|
|
||||||
if stop or not request.user.has_perms(required_perms):
|
if stop or not request.user.has_perms(required_perms):
|
||||||
|
|
Loading…
Reference in a new issue