Contributions 1 min read

# Elements expand icon issue with user permissions

We're always keen on solving visual bugs that may confuse some users and developers. This is one of those. Read more about how we solved this one and where did the idea for this pull request

Last updated on 29 August, 2025

## Key takeaways

1. Pimcore showed an expand icon next to a parent element even when the user had no workspace permission to see any of its child elements.
2. The fix adjusted how Pimcore checks whether a parent element has children, taking the user's permissions into account.
3. The bug was only visual, but it confused admin users into expecting child objects they could not access.

## **What was the issue?**

When you define workspaces for child elements and if child elements exist and the user doesn’t have permission to see them, he will still see + icon next to parent element as if there were some child objects.

## **How did you solve it?**

The way Pimcore checks if the parent element has children was adjusted a little bit.

## **Why is this fix important?**

This was just a visual bug that was confusing admin users so now it won’t happen anymore.

## **How would you describe your current collaboration with the Pimcore community and Pimcore employees?**

Pimcore community is awesome and you can always learn something new from the community members and especially from Pimcore employees.

And if you want to check out this [pull request](https://github.com/pimcore/pimcore/pull/10842), just follow the link!

## Related

[Contributions **Fixing the invisible field inside block element** Another Pimcore fix is coming straight from Factory! Our Pimcore developer, Dino, recently fixed the issue related to invisible fields inside block elements. Visit us and read more… 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/fixing-the-invisible-field) [Contributions **Unit listing – missing condition variables fix** Check out one of our latest pull requests submitted by our Pimcore developers! 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/unit-listing-missing-condition-variables-fix) [Contributions **Option to allow free input in select editable** More power is given to the developers through this fix. Now, it's up to them allow editors even more freedom when working in Pimcore. Find out what's new. 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/free-input-select-editable)

---

Source: https://factory.dev/pimcore-knowledge-base/contributions/elements-expand-icon-issue
