forked from DGNum/gestioCOF
Merge remote-tracking branch 'origin/master' into Aufinal/editions
This commit is contained in:
commit
ccf5f80685
9 changed files with 278 additions and 78 deletions
|
@ -1038,7 +1038,9 @@ def kpsul_perform_operations(request):
|
|||
operationgroup.comment = operationgroup.comment.strip()
|
||||
if not operationgroup.comment:
|
||||
data['errors']['need_comment'] = True
|
||||
return JsonResponse(data, status=400)
|
||||
|
||||
if data['errors']:
|
||||
return JsonResponse(data, status=400)
|
||||
|
||||
if stop or not request.user.has_perms(required_perms):
|
||||
missing_perms = get_missing_perms(required_perms, request.user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue