Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@BlackbitDevs
Copy link
Contributor

I just stumbled about this when trying to get all users below a certain role folder via

$roleListing = new Listing();
$roleFolder = Role\Folder::getByName('abc');
$roles = array_filter($roleListing->load(), static function(AbstractUser $role) use ($roleFolder) {
    return $role->getParentId() === $roleFolder->getId();
});

@brusch brusch merged commit 049d1be into pimcore:master Feb 17, 2020
@brusch
Copy link
Member

brusch commented Feb 17, 2020

Thanks! 🙏

@brusch brusch added this to the 6.5.1 ("Coffee Stout") milestone Feb 17, 2020
@brusch brusch self-assigned this Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants