From e2c231d0cb03a07fb7ed005ca6de32e1cab13875 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Tue, 3 Apr 2001 00:46:00 +0000 Subject: [PATCH] Hopefully working logic for acl access --- addressbook/view.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addressbook/view.php b/addressbook/view.php index 639ebec019..9172044723 100755 --- a/addressbook/view.php +++ b/addressbook/view.php @@ -26,8 +26,9 @@ // First, make sure they have permission to this entry $check = addressbook_read_entry($ab_id,array('owner' => 'owner')); + $perms = $this->check_perms($this->grants[$check[0]['owner']],PHPGW_ACL_READ); - if (! ($this->check_perms($this->grants[$check[0]['owner']],PHPGW_ACL_READ) || $check[0]['owner'] != $phpgw_info['user']['account_id']) ) + if ( (!$perms) && ($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"));