|
@@ -63,7 +63,11 @@ class SecurityContext implements SecurityContextInterface
|
|
|
$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);
|
|
|
}
|
|
|
|
|
|
/**
|