From eab9705e08d8b41f54347ff2929e080b010e1a05 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 3 Jan 2017 12:28:56 +0200 Subject: [PATCH] fix calendar --- client/modules/crm/src/views/calendar/modals/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/modules/crm/src/views/calendar/modals/edit.js b/client/modules/crm/src/views/calendar/modals/edit.js index c8b39b1b7c..2bb47f6914 100644 --- a/client/modules/crm/src/views/calendar/modals/edit.js +++ b/client/modules/crm/src/views/calendar/modals/edit.js @@ -66,7 +66,7 @@ Espo.define('crm:views/calendar/modals/edit', 'views/modals/edit', function (Dep }, handleAccess: function (model) { - if (!this.getAcl().checkModel(model, 'edit')) { + if (this.id && !this.getAcl().checkModel(model, 'edit') || !this.id && !this.getAcl().checkModel(model, 'create')) { this.hideButton('save'); this.hideButton('fullForm'); this.$el.find('button[data-name="save"]').addClass('hidden');