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

Commit

Permalink
Merge c307ec8 into 0c3fea7
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-marangoni committed May 15, 2019
2 parents 0c3fea7 + c307ec8 commit a633c5b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ZendAcl.php
Expand Up @@ -47,4 +47,15 @@ public function isGranted(string $role, ServerRequestInterface $request) : bool

return $this->acl->isAllowed($role, $routeName);
}

/**
* @param $role
* @param $resource
* @param null $privilege
* @return bool
*/
public function isAllowed($role, $resource, $privilege = null)
{
return $this->acl->isAllowed($role, $resource, $privilege);
}
}

0 comments on commit a633c5b

Please sign in to comment.