mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Hopefully working logic for acl access
This commit is contained in:
parent
c02cb6f209
commit
e2c231d0cb
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user