dachcom-digital / pimcore-members

Pimcore Object, Asset and Document Restriction & Frontend Authentication
Other
54 stars 34 forks source link

Can't save Model with inherited restriction rules #162

Closed foxgreek closed 2 years ago

foxgreek commented 2 years ago
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no

If I inherit the restriction rules to the children, following error occurs while trying to save children: image

Affected file: src/MembersBundle/Controller/Admin/RestrictionController.php

It can be fixed by adding a null coalescing operator to line 126:

$groups = array_filter(explode(',', $settings['membersDocumentUserGroups'] ?? ''));

solverat commented 2 years ago

fixed with #163. 4.0.1 has been released!