Code

Moved from attributes to attributes = "" to allow two parameter calls
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Aug 2006 06:02:16 +0000 (06:02 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Aug 2006 06:02:16 +0000 (06:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4383 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_userinfo.inc
plugins/personal/generic/main.inc

index 9c8deabb105061a9dfebc5327a0ef4c408c7fd46..c976a82729664e4827fcfcfe89ca3fe92261ca44 100644 (file)
@@ -175,7 +175,7 @@ class userinfo
   }
 
 
-  function get_permissions($dn, $object, $attribute, $skip_write= FALSE)
+  function get_permissions($dn, $object, $attribute= "", $skip_write= FALSE)
   {
     $acl= array("r" => "", "w" => "", "c" => "", "d" => "", "m" => "", "a" => "");
 
index 40b00534a382c85c394c6e2e71f14ca9bed7bd16..e9610876edbdb272437e1e26c5a2dcf19bb2c025 100644 (file)
@@ -167,7 +167,7 @@ if (!$remove_lock){
 
       /* Only display edit button if there is at least one attribute editable */
       $display .= "edit buttons does not work.";
-      if(preg_match("/w/",$ui->get_category_permissions($ui->dn,"users/user"))){
+      if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/user"))){
         if ($fn == "edit"){
           $info.= "<img class=\"center\" alt=\"\" align=\"middle\" src=\"".get_template_path('images/lamp.png')."\"> ".
             _("Click the 'Edit' button below to change informations in this dialog");