Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

load assertions from service manager

  • Loading branch information...
commit e750d264e76872bd439890946ce9c410ac6f02db 1 parent 36db670
@bjyoungblood authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/BjyAuthorize/Service/Authorize.php
View
4 src/BjyAuthorize/Service/Authorize.php
@@ -218,6 +218,10 @@ protected function loadRule(array $rule, $type)
throw new \InvalidArgumentException('Invalid rule definition: ' . print_r($rule, true));
}
+ if (is_string($assertion)) {
+ $assertion = $this->sl->get($assertion);
+ }
+
if ($type === static::TYPE_ALLOW) {
$this->acl->allow($roles, $resources, $privileges, $assertion);
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.