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

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2 into hotf…
Browse files Browse the repository at this point in the history
…ix/uri-path-not-being-set-when-empty
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ public function isAllowed($role = null, $resource = null, $privilege = null)
return $result;
}

// look for rule on 'allRoles' psuedo-parent
// look for rule on 'allRoles' pseudo-parent
if (null !== ($rules = $this->getRules($resource, null))) {
foreach ($rules['byPrivilegeId'] as $privilege => $rule) {
if (self::TYPE_DENY === ($ruleTypeOnePrivilege = $this->getRuleType($resource, null, $privilege))) {
Expand Down
4 changes: 2 additions & 2 deletions test/AclTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1136,8 +1136,8 @@ public function testAclAssertionsGetOriginalIsAllowedObjects()
$this->assertFalse($acl->isAllowed($user, $blogPost, 'modify'), 'Assertion should return false');

// check to see if the last assertion has the proper objets
$this->assertInstanceOf('ZendTest\Permissions\Acl\TestAsset\UseCase1\User', $assertion->lastAssertRole, 'Assertion did not recieve proper role object');
$this->assertInstanceOf('ZendTest\Permissions\Acl\TestAsset\UseCase1\BlogPost', $assertion->lastAssertResource, 'Assertion did not recieve proper resource object');
$this->assertInstanceOf('ZendTest\Permissions\Acl\TestAsset\UseCase1\User', $assertion->lastAssertRole, 'Assertion did not receive proper role object');
$this->assertInstanceOf('ZendTest\Permissions\Acl\TestAsset\UseCase1\BlogPost', $assertion->lastAssertResource, 'Assertion did not receive proper resource object');

}

Expand Down

0 comments on commit 202d5af

Please sign in to comment.