src/Acl/WriteAssertion.php
public function assert(
        Acl $acl,
        RoleInterface $role = null,
        ResourceInterface $resource = null,
        $privilege = null
    ) {
        if (!$role instanceof UserInterface || !$resource instanceof JobInterface || 'edit' != $privilege) {
            return false;
        }

        /* @var $resource \Jobs\Entity\JobInterface */
        return $resource->getPermissions()->isGranted($role->getId(), Permissions::PERMISSION_CHANGE)
               || $this->checkOrganizationPermissions($role, $resource)
               || (null === $resource->getUser() && \Auth\Entity\UserInterface::ROLE_ADMIN == $role->getRole());
    }
public function assert(
        Acl $acl,
        RoleInterface $role = null,
        ResourceInterface $resource = null,
        $privilege = null
    ) {
        if (!$role instanceof UserInterface || !$resource instanceof JobInterface || 'edit' != $privilege) {
            return false;
        }

        /* @var $resource \Jobs\Entity\JobInterface */
        return $resource->getPermissions()->isGranted($role->getId(), Permissions::PERMISSION_CHANGE)
               || $this->checkOrganizationPermissions($role, $resource)
               || (null === $resource->getUser() && \Auth\Entity\UserInterface::ROLE_ADMIN == $role->getRole());
    }
public function assert ( Acl $ acl , RoleInterface $ role = null , ResourceInterface $ resource = null , $ privilege = null ) { if ( ! $ role instanceof UserInterface || ! $ resource instanceof JobInterface || 'edit' != $ privilege ) { return false ; } /* @var $resource \Jobs\Entity\JobInterface */ return $ resource -> getPermissions ( ) -> isGranted ( $ role -> getId ( ) , Permissions :: PERMISSION_CHANGE ) || $ this -> checkOrganizationPermissions ( $ role , $ resource ) || ( null === $ resource -> getUser ( ) && \ Auth \ Entity \ UserInterface :: ROLE_ADMIN == $ role -> getRole ( ) ) ; }
Returns true, if the user has write access to the job.

{@inheritDoc}
@see \Zend\Permissions\Acl\Assertion\AssertionInterface::assert()
Returns true if the user has write access to the job .