Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-28926

Add validation for PermissionResolver::hasAccess(module, function) arguments

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: High High
    • 2.1.0
    • None
    • Permissions
    • None

    Description

      Add validation for PermissionResolver::hasAccess(module, function) arguments to avoid issues such as ezsystems/ezplatform-admin-ui#358

      Todo:

      1. 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.
      2. 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: