From 6bacbb1eca71915499fca182188a2405fbda064d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 26 Apr 2007 11:24:43 +0000 Subject: [PATCH] "fixed bug: InfoLog's delegated to a group, could not be changed from group-members" --- infolog/inc/class.boinfolog.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/infolog/inc/class.boinfolog.inc.php b/infolog/inc/class.boinfolog.inc.php index 0299e96087..5c28507a21 100644 --- a/infolog/inc/class.boinfolog.inc.php +++ b/infolog/inc/class.boinfolog.inc.php @@ -507,7 +507,10 @@ class boinfolog { $responsible =& $values['info_responsible']; } - $status_only = in_array($this->user, $responsible); // responsible has implicit right to change status + if (!($status_only = in_array($this->user, $responsible))) // responsible has implicit right to change status + { + $status_only = !!array_intersect($responsible,array_keys($GLOBALS['egw']->accounts->memberships($this->user))); + } } if ($values['info_id'] && !$this->check_access($values['info_id'],EGW_ACL_EDIT) && !$status_only || !$values['info_id'] && $values['info_id_parent'] && !$this->check_access($values['info_id_parent'],EGW_ACL_ADD))