CAdvContract :: IsAdmin: Bitrix method

      
<?php 
//  CAdvContract :: IsAdmin()
//  /dist/bitrix/modules/advertising/classes/general/advertising.php:136

    
public static function IsAdmin($USER_ID=false)
    {
        global 
$USER;
        if (
$USER_ID===false && is_object($USER))
        {
            if (
$USER->IsAdmin()) return true;
        }
        return 
CAdvContract::HaveRole(CAdvContract::GetAdminRoleID(), $USER_ID);
    }