From 5a8c7ba3dcf702b9bfe96592ae15eff67017a966 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 3 Aug 2006 11:25:04 +0000 Subject: [PATCH] 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 --- plugins/personal/generic/main.inc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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"; -- 2.30.2