Merge remote-tracking branch 'origin/master' into Aufinal/editions

This commit is contained in:
Ludovic Stephan 2017-04-01 02:43:19 -03:00
commit ccf5f80685
9 changed files with 278 additions and 78 deletions

View file

@ -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)