[Security] fixed cast
This commit is contained in:
parent
acbbe8ac7f
commit
b7fd5198ec
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user