* Infolog: Fix problem Delegated user was not able to edit infolog entrys owned by Groups, if he was not member of that group, and had no grouprights. Implicit rights where not applied; reported in Stylite Tracker#8255;

This commit is contained in:
Klaus Leithoff 2010-10-27 08:42:52 +00:00
parent ef28b28443
commit 27d22befe0

View File

@ -776,7 +776,7 @@ class infolog_bo
$values['info_owner'] = $this->group_owners[$values['info_type']]; $values['info_owner'] = $this->group_owners[$values['info_type']];
if (!($this->grants[$this->group_owners[$values['info_type']]] & EGW_ACL_EDIT)) if (!($this->grants[$this->group_owners[$values['info_type']]] & EGW_ACL_EDIT))
{ {
return false; // no edit rights from the group-owner if (!$this->check_access($values['info_id'],EGW_ACL_EDIT)) return false; // no edit rights from the group-owner and no implicit rights (delegated and sufficient rights)
} }
} }
elseif (!$values['info_id'] && !$values['info_owner'] || $GLOBALS['egw']->accounts->get_type($values['info_owner']) == 'g') elseif (!$values['info_id'] && !$values['info_owner'] || $GLOBALS['egw']->accounts->get_type($values['info_owner']) == 'g')