mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
ADD ACL doesn't mean add in infolog, so use edit OR add for new entries
This commit is contained in:
parent
ada529a9d5
commit
7f48378cff
@ -828,15 +828,13 @@ class infolog_bo
|
||||
if (isset($this->group_owners[$values['info_type']]))
|
||||
{
|
||||
$values['info_owner'] = $this->group_owners[$values['info_type']];
|
||||
if ($values['info_id'] && !($this->grants[$this->group_owners[$values['info_type']]] & EGW_ACL_EDIT))
|
||||
if (!($this->grants[$this->group_owners[$values['info_type']]] & EGW_ACL_EDIT))
|
||||
{
|
||||
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)
|
||||
}
|
||||
else if (!$values['info_id'] && !($this->grants[$this->group_owners[$values['info_type']]] & EGW_ACL_ADD))
|
||||
if (!$this->check_access($values['info_id'],EGW_ACL_EDIT) ||
|
||||
!$values['info_id'] && !$this->check_access($values,EGW_ACL_ADD)
|
||||
)
|
||||
{
|
||||
if (!$this->check_access($values,EGW_ACL_ADD))
|
||||
{
|
||||
return false;
|
||||
return false; // no edit rights from the group-owner and no implicit rights (delegated and sufficient rights)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user