phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: infolog/inc class.bolink.inc.php, 1.20.2.2, 1.20


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: infolog/inc class.bolink.inc.php, 1.20.2.2, 1.20.2.3
Date: Wed, 20 Aug 2003 14:10:52 -0400

Update of /cvsroot/phpgroupware/infolog/inc
In directory subversions:/tmp/cvs-serv28264

Modified Files:
      Tag: Version-0_9_16-branch
        class.bolink.inc.php 
Log Message:
fixed cal-search to check the acl before returning an entry as search-resutl 
(bocalendar::search_keywords does not)

Index: class.bolink.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/infolog/inc/class.bolink.inc.php,v
retrieving revision 1.20.2.2
retrieving revision 1.20.2.3
diff -C2 -r1.20.2.2 -r1.20.2.3
*** class.bolink.inc.php        19 Aug 2003 10:26:03 -0000      1.20.2.2
--- class.bolink.inc.php        20 Aug 2003 18:10:50 -0000      1.20.2.3
***************
*** 847,856 ****
                                $this->bocal = 
createobject('calendar.bocalendar');
                        }
-                       $event_ids = $this->bocal->search_keywords($pattern);
- 
                        $content = array( );
!                       while (is_array($event_ids) && list( $key,$id ) = each( 
$event_ids ))
                        {
!                               $content[$id] = $this->calendar_title( $id );
                        }
                        return $content;
--- 847,862 ----
                                $this->bocal = 
createobject('calendar.bocalendar');
                        }
                        $content = array( );
! 
!                       if ($event_ids = 
$this->bocal->search_keywords($pattern))
                        {
!                               foreach($event_ids as $id)
!                               {
!                                       // only include it in the list, if we 
have permissions to read it
!                                       if 
($this->bocal->check_perms(PHPGW_ACL_READ,$id))
!                                       {
!                                               $content[$id] = 
$this->calendar_title( $id );
!                                       }
!                               }
                        }
                        return $content;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]