CAdvContract :: IsOwner: Bitrix method

      
<?php 
//  CAdvContract :: IsOwner()
//  /dist/bitrix/modules/advertising/classes/general/advertising.php:333

    
public static function IsOwner($CONTRACT_ID$USER_ID=false)
    {
        
$CONTRACT_ID intval($CONTRACT_ID);
        if (
$CONTRACT_ID<=0) return false;
        
$arrPERM CAdvContract::GetUserPermissions($CONTRACT_ID$USER_ID);
        
$arrPERM $arrPERM[$CONTRACT_ID];
        if (
is_array($arrPERM) && count($arrPERM)>0) return true;
        else return 
false;
    }