YetiForceCompany/YetiForceCRM

View on GitHub
modules/OSSEmployees/models/Relation.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

/**
 * Relation Model.
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 * @author    Tomasz Kur <t.kur@yetiforce.com>
 * @author    Radosław Skrzypczak <r.skrzypczak@yetiforce.com>
 */
class OSSEmployees_Relation_Model extends Vtiger_Relation_Model
{
    /** {@inheritdoc} */
    public function privilegeToDelete(Vtiger_Record_Model $recordModel = null, int $recordId = null): bool
    {
        return 'OSSTimeControl' !== $this->getRelationModuleName() && parent::privilegeToDelete($recordModel, $recordId);
    }
}