Details
-
Improvement
-
Resolution: Done
-
High
-
None
-
None
Description
Add validation for PermissionResolver::hasAccess(module, function) arguments to avoid issues such as ezsystems/ezplatform-admin-ui#358
Todo:
- Find a way to move eZ/Bundle/EzPublishCoreBundle/Resources/config/policies.yml into core
and reuse across Core and CoreBundle to get rid of the internal hard-coded policy map. - Unit tests, some failing with Argument 'module' is invalid: 'module: test-module/ function: test-function' is wrong value
Work on that was started here:
https://github.com/ezsystems/ezpublish-kernel/pull/2273/commits/df099a7aff4058fd8a074788a2c13a4eb9cbda89