From 82dd07b5b956b2cb497af375f77ccb9c6c762682 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 27 May 2008 13:05:41 +0000 Subject: [PATCH] Fixed actions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11041 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_divListFai.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_divListFai.inc b/gosa-plugins/fai/admin/fai/class_divListFai.inc index 29b54840d..02f00d44c 100644 --- a/gosa-plugins/fai/admin/fai/class_divListFai.inc +++ b/gosa-plugins/fai/admin/fai/class_divListFai.inc @@ -140,8 +140,8 @@ class divListFai extends MultiSelectWindow array("images/fai_new_script.png" , _("Scripts") ,"Create_script" , _("S") , "faiScript"), array("images/fai_new_hook.png" , _("Hooks") ,"Create_hook" , _("H") , "faiHook"), array("images/fai_new_variable.png" , _("Variables") ,"Create_variable" , _("V") , "faiVariable"), - array("images/fai_new_template.png" , _("Templates ") ,"Create_template" , _("I") , "faiTemplate"), - array("images/fai_new_packages.png" , _("Package list") ,"Create_package" , _("PK") , "faiPackage")); + array("images/fai_new_template.png" , _("Templates ") ,"Create_template" , _("I") , "faiTemplate"), + array("images/fai_new_packages.png" , _("Package list") ,"Create_package" , _("PK") , "faiPackage")); foreach($arr as $ar){ $acl = $ui->get_permissions($this->parent->fai_base,"fai/".$ar[4]); @@ -156,8 +156,8 @@ class divListFai extends MultiSelectWindow $s.= "..|". " "._("Remove")."|"."remove_multiple|\n"; - /* Add multiple copy & cut icons */ - if(is_object($this->parent->CopyPasteHandler)){ + + if(is_object($this->parent->CopyPasteHandler) && preg_match("/r/",$acl_all)){ $s.= "..|---|\n"; $s.= "..|". " "._("Copy")."|"."multiple_copy_systems|\n"; @@ -255,7 +255,7 @@ class divListFai extends MultiSelectWindow $ui = get_userinfo(); $action =""; $acl_all = $ui->has_complete_category_acls($this->parent->fai_base,$this->module); - if(preg_match("/(c.*w|w.*c)/",$acl_all) && $this->parent->CopyPasteHandler){ + if(preg_match("/r/",$acl_all) && $this->parent->CopyPasteHandler){ $action .= " "; } -- 2.30.2