diff --git a/addressbook/templates/default/view.tpl b/addressbook/templates/default/view.tpl
index b0aa47de54..2649f950bb 100644
--- a/addressbook/templates/default/view.tpl
+++ b/addressbook/templates/default/view.tpl
@@ -11,7 +11,7 @@
{edit_link}
-
+ {edit_button}
|
diff --git a/addressbook/view.php b/addressbook/view.php
index 8f9cc65fd8..09a6ff859a 100755
--- a/addressbook/view.php
+++ b/addressbook/view.php
@@ -27,7 +27,7 @@
// First, make sure they have permission to this entry
$check = addressbook_read_entry($ab_id,array('owner' => 'owner'));
- if (! $this->check_perms($this->grants[$check[0]['owner']],PHPGW_ACL_PRIVATE) && $check[0]['owner'] != $phpgw_info['user']['account_id'])
+ if (! $this->check_perms($this->grants[$check[0]['owner']],PHPGW_ACL_READ) && $check[0]['owner'] != $phpgw_info['user']['account_id'])
{
Header("Location: "
. $phpgw->link('/addressbook/index.php',"cd=16&order=$order&sort=$sort&filter=$filter&start=$start&query=$query&cat_id=$cat_id"));
@@ -113,10 +113,10 @@
}
$cat = CreateObject('phpgwapi.categories');
- $catinfo = $cat->return_single($cat_id);
+// $catinfo = $cat->return_single($cat_id);
$catname = $catinfo[0]["name"];
$cat->app_name = "phpgw";
- $catinfo = $cat->return_single($cat_id);
+// $catinfo = $cat->return_single($cat_id);
$catname .= $catinfo[0]["name"];
if (!$catname) { $catname = lang('none'); }
@@ -131,11 +131,11 @@
$sfields = rawurlencode(serialize($fields[0]));
- if ($rights & PHPGW_ACL_EDIT) {
- $editlink = ' |