From 372492ac8e8b53c5d08fc0c892b31cd3bf589e35 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 18 Mar 2001 08:49:30 +0000 Subject: [PATCH] Make 'Edit' a button and based upon ACL --- addressbook/templates/default/view.tpl | 6 ++++-- addressbook/view.php | 9 ++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/addressbook/templates/default/view.tpl b/addressbook/templates/default/view.tpl index bdfebf0b94..b0aa47de54 100644 --- a/addressbook/templates/default/view.tpl +++ b/addressbook/templates/default/view.tpl @@ -11,8 +11,10 @@ {edit_link} + + - + {copy_link} @@ -22,7 +24,7 @@ - + {vcard_link} diff --git a/addressbook/view.php b/addressbook/view.php index 1e59eec201..44b00ccd6f 100755 --- a/addressbook/view.php +++ b/addressbook/view.php @@ -99,7 +99,14 @@ . $access_link . ''; $sfields = rawurlencode(serialize($fields[0])); - $editlink = $phpgw->common->check_owner($record_owner,"/addressbook/edit.php",lang("edit"),"ab_id=" . $ab_id . "&start=".$start."&sort=".$sort."&order=".$order); + + if ($rights & PHPGW_ACL_EDIT) { + $editlink = '
'; + } else { + $editlink = ''; + } + $copylink = ''; $vcardlink = ''; $donelink = '';