HomeHelpTrac

Ignore:
Timestamp:
03/10/10 11:19:50 (2 years ago)
Author:
Leonid Sokushev
Message:

ticket #1900 + mem levels checking for sounds and videos blocks at profile page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/base/scripts/BxBaseSearchResultSharedMedia.php

    r13727 r13775  
    611611        return $aFiles; 
    612612    } 
     613     
     614    function checkMemAction ($iFileOwner, $sAction = 'view') { 
     615        $iFileOwner = (int)$iFileOwner; 
     616        $sAction = clear_xss($sAction); 
     617        if ($this->oModule->isAdmin($this->oModule->_iProfileId) || $iFileOwner == $this->oModule->_iProfileId) return true; 
     618        $this->oModule->_defineActions(); 
     619        $aCheck = checkAction($this->oModule->_iProfileId, $this->oModule->_defineActionName($sAction)); 
     620        if ($aCheck[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED) 
     621            return false; 
     622        return true; 
     623    } 
    613624} 
    614625 
Note: See TracChangeset for help on using the changeset viewer.