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

Commit

Permalink
Merge branch 'hotfix/3827' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/AssertionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface AssertionInterface
/**
* Assertion method - must return a boolean.
*
* @param Rbac $bac
* @param Rbac $rbac
* @return boolean
*/
public function assert(Rbac $rbac);
Expand Down
8 changes: 5 additions & 3 deletions src/Rbac.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public function getCreateMissingRoles()
/**
* Add a child.
*
* @param string|RoleInterface $child
* @param string|RoleInterface $child
* @param array|RoleInterface|null $parents
* @return RoleInterface
* @throws Exception\InvalidArgumentException
*/
Expand Down Expand Up @@ -123,8 +124,9 @@ public function getRole($objectOrName)
/**
* Determines if access is granted by checking the role and child roles for permission.
*
* @param string $permission
* @param \Zend\Permissions\Rbac\AssertionInterface|Callable|null $assert
* @param RoleInterface|string $role
* @param string $permission
* @param AssertionInterface|Callable|null $assert
* @return bool
*/
public function isGranted($role, $permission, $assert = null)
Expand Down

0 comments on commit 256605f

Please sign in to comment.