From ad38cd0c23f7fd0c9f92a84743856918aa65817d Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 4 Aug 2006 06:02:16 +0000 Subject: [PATCH] Moved from attributes to attributes = "" to allow two parameter calls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4383 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_userinfo.inc | 2 +- plugins/personal/generic/main.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_userinfo.inc b/include/class_userinfo.inc index 9c8deabb1..c976a8272 100644 --- a/include/class_userinfo.inc +++ b/include/class_userinfo.inc @@ -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" => ""); diff --git a/plugins/personal/generic/main.inc b/plugins/personal/generic/main.inc index 40b00534a..e9610876e 100644 --- a/plugins/personal/generic/main.inc +++ b/plugins/personal/generic/main.inc @@ -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.= "\"\" ". _("Click the 'Edit' button below to change informations in this dialog"); -- 2.30.2