mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
fixed wrong permission-check (was PHPGW_ACL_DELETE instead of _READ or _EDIT)
This commit is contained in:
parent
df93243fbc
commit
620eb15fc4
@ -268,7 +268,7 @@
|
||||
|
||||
function read_entry($data)
|
||||
{
|
||||
if ($this->check_perms($data,PHPGW_ACL_DELETE))
|
||||
if ($this->check_perms($data,PHPGW_ACL_READ))
|
||||
{
|
||||
$entry = $this->so->read_entry($data['id'],$data['fields']);
|
||||
return $this->strip_html($entry);
|
||||
@ -278,7 +278,7 @@
|
||||
|
||||
function read_last_entry($fields)
|
||||
{
|
||||
if ($this->check_perms($fields,PHPGW_ACL_DELETE))
|
||||
if ($this->check_perms($fields,PHPGW_ACL_READ))
|
||||
{
|
||||
$entry = $this->so->read_last_entry($fields);
|
||||
return $this->strip_html($entry);
|
||||
|
Loading…
Reference in New Issue
Block a user