From: hickert Date: Thu, 3 Aug 2006 11:25:04 +0000 (+0000) Subject: Only display edit button if there is at least one attribute editable X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5a8c7ba3dcf702b9bfe96592ae15eff67017a966;p=gosa.git Only display edit button if there is at least one attribute editable git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4379 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/main.inc b/plugins/personal/generic/main.inc index 8d7f30d97..3c804fabe 100644 --- a/plugins/personal/generic/main.inc +++ b/plugins/personal/generic/main.inc @@ -165,12 +165,15 @@ if (!$remove_lock){ "\"> ".$ui->dn." "; } - echo "Check acl here; Only display edit button if we are able to edit at least one attribute. Line 168"; - if ($fn == "edit"){ - $info.= "\"\" ". - _("Click the 'Edit' button below to change informations in this dialog"); - $display.= "\n"; + /* Only display edit button if there is at least one attribute editable */ + if(preg_match("/w/",$ui->get_category_permissions($ui->dn,"users"))){ + if ($fn == "edit"){ + $info.= "\"\" ". + _("Click the 'Edit' button below to change informations in this dialog"); + $display.= "\n"; + } } + $display.= "\n"; } $display.= "

\n";