dachcom-digital / pimcore-members

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

There's a bug in src/Adapter/User/UserTrait.php line 56 where it just breaks when you have an empty roles. #199

Closed willfroq closed 1 month ago

willfroq commented 7 months ago
Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC? yes/no
willfroq commented 7 months ago

The fix would be just: foreach ($this->getGroups() ?? [] as $group) { Screenshot 2024-03-10 at 09 31 18

blankse commented 4 months ago

@willfroq I created a PR: https://github.com/dachcom-digital/pimcore-members/pull/200

scrummer commented 1 month ago

resolved by #200