HomeHelpTrac

Ignore:
Timestamp:
12/07/09 23:17:06 (2 years ago)
Author:
Alexander Trofimov
Message:

Ticket #543

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCUser.php

    r13356 r13384  
    6262 
    6363        BxDolXMLRPCUtil::setLanguage ($sLang);  
     64         
     65        if ($iIdProfile != $iId) 
     66        { 
     67            // privacy 
     68            bx_import('BxDolPrivacy'); 
     69            $oPrivacy = new BxDolPrivacy('Profiles', 'ID', 'ID'); 
     70            if ($iIdProfile != $iId && !$oPrivacy->check('view', $iIdProfile, $iId)) 
     71                return new xmlrpcval ('-1'); 
     72 
     73            // membership 
     74            $aCheckRes = checkAction($iId, ACTION_ID_VIEW_PROFILES, true, $iIdProfile); 
     75            if ($aCheckRes[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED) 
     76                return new xmlrpcval ($check_res[CHECK_ACTION_MESSAGE]); 
     77        } 
    6478 
    6579        $aRet = BxDolXMLRPCUtil::getUserInfo($iIdProfile); 
Note: See TracChangeset for help on using the changeset viewer.