diff --git a/modules/Calendar/actions/SaveAjax.php b/modules/Calendar/actions/SaveAjax.php index dba7505ba4d3b48106b4531a6dcc9732daa72808..398fc9e318d1fbe3c15bc253326b380bb1dcbea9 100644 --- a/modules/Calendar/actions/SaveAjax.php +++ b/modules/Calendar/actions/SaveAjax.php @@ -14,7 +14,10 @@ class Calendar_SaveAjax_Action extends Vtiger_SaveAjax_Action { $moduleName = $request->getModule(); $record = $request->get('record'); - $actionName = ($record) ? 'EditView' : 'CreateView'; + // Child class permission check support - DragDropAjax + $recordId = $request->get('id'); + + $actionName = ($record || $recordId) ? 'EditView' : 'CreateView'; if(!Users_Privileges_Model::isPermitted($moduleName, $actionName, $record)) { throw new AppException(vtranslate('LBL_PERMISSION_DENIED')); }