"fixed infolog loosing links: wrong placed bracket"

This commit is contained in:
Ralf Becker 2010-03-18 10:00:39 +00:00
parent 14f55a35ed
commit 39e2710b24

View File

@ -659,10 +659,12 @@ class infolog_bo
function write(&$values, $check_defaults=true, $touch_modified=true, $user2server=true) function write(&$values, $check_defaults=true, $touch_modified=true, $user2server=true)
{ {
//echo "boinfolog::write()values="; _debug_array($values); //echo "boinfolog::write()values="; _debug_array($values);
if (!$values['info_id'] && !$this->check_access(0,EGW_ACL_EDIT,$values['info_owner']) if (!$values['info_id'] && !$this->check_access(0,EGW_ACL_EDIT,$values['info_owner']) &&
&& !$this->check_access(0,EGW_ACL_ADD,$values['info_owner'])) return false; !$this->check_access(0,EGW_ACL_ADD,$values['info_owner']))
{
if (($status_only = $values['info_id']) && !$this->check_access($values['info_id'],EGW_ACL_EDIT)) return false;
}
if (($status_only = $values['info_id'] && !$this->check_access($values['info_id'],EGW_ACL_EDIT)))
{ {
if (!isset($values['info_responsible'])) if (!isset($values['info_responsible']))
{ {