From: hickert Date: Tue, 31 Oct 2006 11:12:23 +0000 (+0000) Subject: Fixed acls for import X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cacdd63ce9097228bad97c3631c3c4fa178fc74c;p=gosa.git Fixed acls for import git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4975 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/ldapmanager/class_csvimport.inc b/plugins/addons/ldapmanager/class_csvimport.inc index be1b15120..0831366ba 100644 --- a/plugins/addons/ldapmanager/class_csvimport.inc +++ b/plugins/addons/ldapmanager/class_csvimport.inc @@ -495,25 +495,6 @@ class csvimport extends plugin return ($smarty->fetch (get_template_path('contentcsv.tpl', TRUE))); } - - /* Return plugin informations for acl handling - #FIXME You can only read attributes within this report plugin */ - function plInfo() - { - return (array( - "plShortName" => _("CSV import"), - "plDescription" => _("CSV import"), - "plSelfModify" => FALSE, - "plDepends" => array(), - "plPriority" => 4, - "plSection" => array("addon"), - "plCategory" => array("ldapmanager"), - - "plProvidedAcls" => array() - )); - } - - } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/plugins/addons/ldapmanager/class_import.inc b/plugins/addons/ldapmanager/class_import.inc index d1d2983a8..44769e9a0 100644 --- a/plugins/addons/ldapmanager/class_import.inc +++ b/plugins/addons/ldapmanager/class_import.inc @@ -41,7 +41,7 @@ class ldifimport extends plugin if((isset($_FILES['userfile']['name']))&&(isset($_POST['fileup']))){ /* Check acls */ - if(!preg_match("/r/",$acl)){ + if(!preg_match("/w/",$acl)){ print_red(_("You need full access to all objects, to execute the import command.")); }else{ @@ -106,23 +106,6 @@ class ldifimport extends plugin } return ($smarty->fetch (get_template_path('contentimport.tpl', TRUE))); } - - /* Return plugin informations for acl handling - #FIXME You can only read attributes within this report plugin */ - function plInfo() - { - return (array( - "plShortName" => _("Import"), - "plDescription" => _("Import"), - "plSelfModify" => FALSE, - "plDepends" => array(), - "plPriority" => 3, - "plSection" => array("addon"), - "plCategory" => array("ldapmanager"), - - "plProvidedAcls" => array() - )); - } }