From c4ce04a27873e3c0d7b822d4f740ad274ed59705 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 24 Oct 2006 05:55:41 +0000 Subject: [PATCH] Initial Package acl commit git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4919 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPackage.inc | 18 ++++-------------- plugins/admin/fai/faiPackage.tpl | 18 ++++++++++++------ 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index 989ff1be3..54589793a 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -67,8 +67,6 @@ class faiPackage extends plugin /* Load Attributes */ plugin::plugin ($config, $dn); - $this->acl ="#all#"; - /* If "dn==new" we try to create a new entry * Else we must read all objects from ldap which belong to this entry. * First read SubObjects from ldap ... and then the partition definitions for the SubObjects. @@ -76,13 +74,6 @@ class faiPackage extends plugin if($dn != "new"){ $this->dn =$dn; - /* Set acls - */ - $ui = get_userinfo(); - $acl = get_permissions ($this->dn, $ui->subtreeACL); - $acli = get_module_permission($acl, "FAIclass", $this->dn); - $this->acl=$acli; - /* Get FAIstate */ if(isset($this->attrs['FAIstate'][0])){ @@ -280,7 +271,6 @@ class faiPackage extends plugin } $this->dialog = new faiPackageConfiguration($this->config, $this->dn,$pkg, $path, $pkg_config); - $this->dialog ->acl = $this->acl; $this->is_dialog =true; } @@ -327,12 +317,11 @@ class faiPackage extends plugin $strsec .= $sec." "; } - foreach($this->attributes as $attr){ - $smarty->assign($attr."ACL",chkacl($this->acl,$attr)); + $tmp = $this->plInfo(); + foreach($tmp['plProvidedAcls'] as $name => $translated){ + $smarty->assign($name."ACL",$this->getacl($name,preg_match("/freeze/",$this->FAIstate))); } - $smarty->assign("OptionsACL",""); - $smarty->assign("releases",$this->releases); $smarty->assign("release" ,$this->FAIdebianRelease); $smarty->assign("sections",$this->sections); @@ -557,6 +546,7 @@ class faiPackage extends plugin "FAIpackage" => _("Packages"), "FAIdebianSection" => _("Section"), "FAIinstallMethod" => _("Install Method"), + "FAIdebconfInfo" => _("Package configuration"), "FAIdebianRelease" => _("Release")) )); } diff --git a/plugins/admin/fai/faiPackage.tpl b/plugins/admin/fai/faiPackage.tpl index 388c1e848..1dfd31983 100644 --- a/plugins/admin/fai/faiPackage.tpl +++ b/plugins/admin/fai/faiPackage.tpl @@ -10,7 +10,9 @@ +{render acl=$cnACL} +{/render} @@ -20,7 +22,9 @@ - +{render acl=$descriptionACL} + +{/render} @@ -49,9 +53,11 @@ {t}Install method{/t} : - {html_options options=$FAIinstallMethods output=$FAIinstallMethod selected=$FAIinstallMethod} +{/render} @@ -68,10 +74,10 @@ {html_options options=$usedPackages}
- - - - + + + + -- 2.30.2