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

Commit

Permalink
[Security] fixed cast
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Dec 7, 2011
1 parent 8432044 commit d2bdba5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Core/SecurityContext.php
Expand Up @@ -63,7 +63,11 @@ public final function isGranted($attributes, $object = null)
$this->token = $this->authenticationManager->authenticate($this->token); $this->token = $this->authenticationManager->authenticate($this->token);
} }


return $this->accessDecisionManager->decide($this->token, (array) $attributes, $object); if (!is_array($attributes)) {
$attributes = array($attributes);
}

return $this->accessDecisionManager->decide($this->token, $attributes, $object);
} }


/** /**
Expand Down

0 comments on commit d2bdba5

Please sign in to comment.