phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: sitemgr/inc class.Pages_BO.inc.php,1.8,1.9


From: Michael Totschnig <address@hidden>
Subject: [Phpgroupware-cvs] CVS: sitemgr/inc class.Pages_BO.inc.php,1.8,1.9
Date: Sat, 31 May 2003 00:29:24 -0400

Update of /cvsroot/phpgroupware/sitemgr/inc
In directory subversions:/tmp/cvs-serv14528/inc

Modified Files:
        class.Pages_BO.inc.php 
Log Message:
show edit link only for editable blocks


Index: class.Pages_BO.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/inc/class.Pages_BO.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** class.Pages_BO.inc.php      30 May 2003 04:01:43 -0000      1.8
--- class.Pages_BO.inc.php      31 May 2003 04:29:22 -0000      1.9
***************
*** 35,46 ****
                function getPageIDList($cat_id=0,$states=false)
                {
!                       if (!$cat_id || 
$GLOBALS['Common_BO']->acl->can_read_category($cat_id))
!                       {
!                               return 
$this->so->getPageIDList($cat_id,$states);       
!                       }
!                       else
!                       {
!                               return false;
!                       }
                }
  
--- 35,39 ----
                function getPageIDList($cat_id=0,$states=false)
                {
!                       return $this->so->getPageIDList($cat_id,$states);       
                }
  
***************
*** 88,96 ****
                {
                        $page = $this->so->getPage($page_id,$lang);
!                       if(
!                               $page && 
!                               
in_array($page->cat_id,$GLOBALS['Common_BO']->cats->currentcats) &&
!                               
$GLOBALS['Common_BO']->acl->can_read_category($page->cat_id)
!                       )
                        {
                                //if the page is not in published status we 
maintain its name so that switching from edit to prodcution mode works
--- 81,85 ----
                {
                        $page = $this->so->getPage($page_id,$lang);
!                       if ($page && 
in_array($page->cat_id,$GLOBALS['Common_BO']->cats->readablecats))
                        {
                                //if the page is not in published status we 
maintain its name so that switching from edit to prodcution mode works





reply via email to

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