mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
* Infolog: Take group add ACL into account for type on new entries
Previously just edit ACL was considered
This commit is contained in:
parent
a2c0234401
commit
030f023968
@ -2196,6 +2196,12 @@ class infolog_ui
|
||||
// remove types owned by groups the user has no edit grant (current type is made readonly)
|
||||
foreach($this->bo->group_owners as $type => $group)
|
||||
{
|
||||
// Allow the group if the entry is unsaved and they have add access
|
||||
if(!$content['info_id'] && (($this->bo->grants[$group] ?? 0) & Acl::ADD))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!(($this->bo->grants[$group]??0) & Acl::EDIT))
|
||||
{
|
||||
if ($type == $content['info_type'])
|
||||
|
Loading…
Reference in New Issue
Block a user