HomeHelpTrac

Ignore:
Timestamp:
01/18/10 17:46:44 (2 years ago)
Author:
Alexander Trofimov
Message:

Ticket #1705 - perform action for photo upload

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCMedia.php

    r13578 r13589  
    156156    } 
    157157 
    158     function _isMembershipEnabledFor ($iProfileId, $sMembershipActionConstant) { 
     158    function _isMembershipEnabledFor ($iProfileId, $sMembershipActionConstant, $isPerformAction = false) { 
    159159        defineMembershipActions (array('photos add', 'photos view', 'sounds view', 'videos view')); 
    160160        if (!defined($sMembershipActionConstant)) 
    161161            return false; 
    162         $aCheck = checkAction($iProfileId ? $iProfileId : $_COOKIE['memberID'], constant($sMembershipActionConstant)); 
     162        $aCheck = checkAction($iProfileId ? $iProfileId : $_COOKIE['memberID'], constant($sMembershipActionConstant), $isPerformAction); 
    163163        return $aCheck[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED; 
    164164    }     
Note: See TracChangeset for help on using the changeset viewer.