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

As a Developer I'd like sudo() to be exposed on API

    Details

      Description

      A bit overdue small change.

      Needed so:

      • It can be found easier, and so we can document it
      • So it can become official so Developers feels safe using it

      Note, this does not:

      • Remove the need to continue adding bulk loading API's that don't throw but instead just filters on permission
        • Remove the possible notion of adding arguments on these load methods to opt out of permission checking, like is the case on find*()
      • Fix the fact that sudo() does not have relevant return type hinting by it's nature

        Activity

        Hide
        André Rømcke added a comment -

        Merged for 2.5:
        https://github.com/ezsystems/ezpublish-kernel/commit/34ee12f18fb29c07482c1180e3e6278d9542203a

        Doc:
        This means we can document it as a official way to skip permissions checks when there are use cases for it.

        Show
        André Rømcke added a comment - Merged for 2.5: https://github.com/ezsystems/ezpublish-kernel/commit/34ee12f18fb29c07482c1180e3e6278d9542203a Doc: This means we can document it as a official way to skip permissions checks when there are use cases for it.
        Show
        Dominika Kurek added a comment - Doc PR: https://github.com/ezsystems/developer-documentation/pull/523

          People

          • Assignee:
            Unassigned
            Reporter:
            André Rømcke
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: