Skip to content
Snippets Groups Projects
Commit 950c7c80 authored by Prasad's avatar Prasad
Browse files

Fixes #937: Check for EditView instead of CreateView when Calendar DragDrop

parent 435e4d88
No related branches found
No related tags found
No related merge requests found
......@@ -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'));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment