[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] sitemgr/inc class.Categories_BO.inc.php
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] sitemgr/inc class.Categories_BO.inc.php |
Date: |
Mon, 27 Mar 2006 17:45:28 +0000 |
CVSROOT: /cvsroot/phpgroupware
Module name: sitemgr
Branch:
Changes by: Dave Hall <address@hidden> 06/03/27 17:45:26
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?tr1=1.14&tr2=1.15&r1=text&r2=text
Patches:
Index: sitemgr/inc/class.Categories_BO.inc.php
diff -u sitemgr/inc/class.Categories_BO.inc.php:1.14
sitemgr/inc/class.Categories_BO.inc.php:1.15
--- sitemgr/inc/class.Categories_BO.inc.php:1.14 Tue Jul 20 23:22:53 2004
+++ sitemgr/inc/class.Categories_BO.inc.php Mon Mar 27 17:45:22 2006
@@ -342,14 +342,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);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] sitemgr/inc class.Categories_BO.inc.php,
Dave Hall <=