summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25a1520)
raw | patch | inline | side by side (parent: 25a1520)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 Oct 2006 11:12:23 +0000 (11:12 +0000) | ||
committer | hickert <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 | patch | blob | history | |
plugins/addons/ldapmanager/class_import.inc | patch | blob | history |
diff --git a/plugins/addons/ldapmanager/class_csvimport.inc b/plugins/addons/ldapmanager/class_csvimport.inc
index be1b15120fb328bffb00972f422fc35dd3ac9516..0831366ba278929c58801aa608db8d4754d70766 100644 (file)
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 d1d2983a8d213036d087bee0460dc7b91869ece2..44769e9a0d0c21ab9bc81a99d86aa683335dae5d 100644 (file)
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{
}
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()
- ));
- }
}