Code

Fixed acls for import
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 Oct 2006 11:12:23 +0000 (11:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 Oct 2006 11:12:23 +0000 (11:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4975 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/ldapmanager/class_csvimport.inc
plugins/addons/ldapmanager/class_import.inc

index be1b15120fb328bffb00972f422fc35dd3ac9516..0831366ba278929c58801aa608db8d4754d70766 100644 (file)
@@ -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:
index d1d2983a8d213036d087bee0460dc7b91869ece2..44769e9a0d0c21ab9bc81a99d86aa683335dae5d 100644 (file)
@@ -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()
-        ));
-  }
 }