function isAllowedDelete(&$aFile, $isPerformAction = false)
{
if ($this->isAdmin($this->_iProfileId) || $aFile['medProfId'] == $this->_iProfileId) {
return true;
}
$this->_defineActions();
$aCheck = checkAction($this->_iProfileId, $this->_defineActionName('delete'), $isPerformAction);
if ($aCheck[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED) {
return true;
}
return false;
}