Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

zend-permissions-acl 2.7.0

Compare
Choose a tag to compare
@weierophinney weierophinney released this 01 May 21:54
· 22 commits to master since this release

Added

  • #23 adds a new assertion, ExpressionAssertion, to allow programatically or
    automatically (from configuration) building standard comparison assertions
    using a variety of operators, including = (==), !=, <, <=, >,
    >=, ===, !==, in (in_array), !in (! in_array), regex
    (preg_match), and !regex (! preg_match). See https://docs.zendframework.com/zend-permissions-acl/expression/
    for details on usage.

  • #3 adds two new interfaces designed to allow creation of ownership-based assertions
    easier:

    • Zend\Permissions\Acl\ProprietaryInterface is applicable to both roles and
      resources, and provides the method getOwnerId() for retrieving the owner
      role of an object.

    • Zend\Permissions\Acl\Assertion\OwnershipAssertion ensures that the owner
      of a proprietary resource matches that of the role.

    See https://docs.zendframework.com/zend-permissions-acl/ownership/ for details
    on usage.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.