Ejemplo n.º 1
0
 /**
  * @func      checkAccess
  * @desc      calculate if provided uid/gid has sufficient rights
  * @param     arr        $aAclList     array with individual acl entries
  * @param     str        $sUid         username
  * @param     arr        $aGid         array with groups
  * @param     int        $iRights      rights to check
  * @return    bool                     sufficient rights
  * @access    public
  * @author    Marc Groot Koerkamp
  */
 function checkAccess($aAclList, $sUid = '', $aGid = array(), $iRights)
 {
     $iMyRights = acl::effectiveRights($aAclList, $sUid, $aGid);
     return acl::suffRights($iMyRights, $iRights);
 }