diff --git a/modules/Accounts/actions/TransferOwnership.php b/modules/Accounts/actions/TransferOwnership.php index 1fa983429c79be623f5f3a8b2471eae12cc9b1b2..d5b11d18fbb904d08890491ae8ffdb27bf86cc77 100644 --- a/modules/Accounts/actions/TransferOwnership.php +++ b/modules/Accounts/actions/TransferOwnership.php @@ -27,6 +27,9 @@ class Accounts_TransferOwnership_Action extends Vtiger_Action_Controller { if($permissionStatus){ $this->transferRecordIds[] = $recordId; } + if(empty($this->transferRecordIds)){ + throw new AppException(vtranslate('LBL_RECORD_PERMISSION_DENIED')); + } } return true; }