* Infolog: Take group add ACL into account for type on new entries

Previously just edit ACL was considered
This commit is contained in:
nathan 2023-12-01 10:06:52 -07:00
parent a2c0234401
commit 030f023968

View File

@ -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'])