From: marina Date: Tue, 3 Jun 2025 13:23:45 +0000 (+0300) Subject: ERP-417 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=619b1b2dd6be27d21404e16f2e13bef500c04ad4;p=erp24_rep%2Fyii-erp24%2F.git ERP-417 --- diff --git a/erp24/web/js/validate/validateForm.js b/erp24/web/js/validate/validateForm.js index 05451880..fe4b6add 100755 --- a/erp24/web/js/validate/validateForm.js +++ b/erp24/web/js/validate/validateForm.js @@ -73,7 +73,7 @@ $(".form-validate button").click(function (e) { if (!errors['__common']) errors['__common'] = []; errors['__common'].push('Пожалуйста, добавьте хотя бы одно фото к каждому списанию перед сохранением.'); } - +console.log(currentUser, allowedCommentUsers.includes(currentUser)) if (!allowedCommentUsers.includes(currentUser) && commentValue !== initialCommentValue) { if (!errors['__common']) errors['__common'] = []; errors['__common'].push('Вы не можете редактировать комментарий для данного магазина.');