netgen / ezpublish-kernel

eZ Publish API and kernel. This is the heart of eZ Publish 5. This is a v2014.11 kernel, maintained for bugfixes by Netgen.
https://netgen.io
Other
8 stars 18 forks source link

EZP-23847: Add Role API parameter to get inherited RoleAssignments #24

Closed emodric closed 8 years ago

emodric commented 8 years ago

https://jira.ez.no/browse/EZP-23847

Role ID user hash context provider uses inherited param when calculating user hash (https://github.com/netgen/ezpublish-kernel/blob/master/eZ/Publish/Core/MVC/Symfony/Security/User/ContextProvider/RoleContextProvider.php#L39), however, this param never existed in 2014.11 in signal slot repo wrapper. Because of this, inherited role assignments were never included in user hash generation process, which meant that for example anonymous and admin (and most of the users, for what it's worth) always had the same user hash (neither of them have any role assignments directly applied on them) when signal slot repo is used.

Original PR: https://github.com/ezsystems/ezpublish-kernel/pull/1056