summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Core/SecurityContext.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/Core/SecurityContext.php b/Core/SecurityContext.php
index 1065163..6d11850 100644
--- a/Core/SecurityContext.php
+++ b/Core/SecurityContext.php
@@ -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);
}
/**