phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] sitemgr/inc class.Categories_BO.inc.php [skwashd-16-c


From: Dave Hall
Subject: [Phpgroupware-cvs] sitemgr/inc class.Categories_BO.inc.php [skwashd-16-compat]
Date: Tue, 28 Mar 2006 01:07:17 +0000

CVSROOT:        /cvsroot/phpgroupware
Module name:    sitemgr
Branch:         skwashd-16-compat
Changes by:     Dave Hall <address@hidden>      06/03/28 01:07:17

Modified files:
        inc            : class.Categories_BO.inc.php 

Log message:
        fix access denied

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/sitemgr/inc/class.Categories_BO.inc.php.diff?only_with_tag=skwashd-16-compat&tr1=1.6.2.2.4.2&tr2=1.6.2.2.4.3&r1=text&r2=text

Patches:
Index: sitemgr/inc/class.Categories_BO.inc.php
diff -u sitemgr/inc/class.Categories_BO.inc.php:1.6.2.2.4.2 
sitemgr/inc/class.Categories_BO.inc.php:1.6.2.2.4.3
--- sitemgr/inc/class.Categories_BO.inc.php:1.6.2.2.4.2 Mon Mar 27 13:13:24 2006
+++ sitemgr/inc/class.Categories_BO.inc.php     Tue Mar 28 01:07:17 2006
@@ -344,14 +344,15 @@
                //make sure cat_id belongs to current site
                function check($cat_id)
                {
-                       if (in_array($cat_id,$this->currentcats))
+                       if (in_array($cat_id,$this->currentcats)
+                               || ($cat_id == CURRENT_SITE_ID && 
$GLOBALS['Common_BO']->acl->is_admin() ) )
                        {
                                return True;
                        }
                        else
                        {
-print_r($this->currentcats);
-var_dump(debug_backtrace());
+                               //print_r($this->currentcats);
+                               //var_dump(debug_backtrace());
                                echo '<p><center><b>'.lang('Attempt to access 
information outside current website').'</b></center>';
                                $GLOBALS['phpgw']->common->phpgw_exit(True);
                        }




reply via email to

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