From 9cf223b388c0e4b4834d59d06592e3e46087d055 Mon Sep 17 00:00:00 2001 From: psc Date: Wed, 18 Mar 2009 11:39:17 +0000 Subject: [PATCH] Remove the tabs::tabs call from tabs_printers.inc because it does not work (properly) in this special case as the printGeneric class takes more arguments as usual. Instead set $this->acl_category manually to avoid access control problems. (Fixes PHP errors at various places; Trac #2246) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13551 594d385d-05f5-0310-b6e9-bd551577e9d8 --- trunk/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/trunk/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc b/trunk/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc index eab3b256c..059f03c1d 100644 --- a/trunk/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc +++ b/trunk/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc @@ -5,14 +5,15 @@ class printtabs extends tabs function printtabs($config, $data, $dn,$category) { - tabs::tabs($config, $data, $dn,$category); - /* Save dn */ $this->dn= $dn; $this->config= $config; $baseobject= NULL; + /* Set acl_category */ + $this->acl_category = $category; + foreach ($data as $tab){ if(!class_available($tab['CLASS'])) continue; -- 2.30.2