Skip to content
Browse files

Add check if value is set on array to Ac

  • Loading branch information...
1 parent fb19053 commit 3bcc4d0315fbce0e77779a931f1f3d115716eb6b @white-gecko white-gecko committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 library/Erfurt/Ac/Default.php
View
6 library/Erfurt/Ac/Default.php
@@ -277,8 +277,12 @@ public function getDeniedModels($type = 'view')
*/
public function isModelAllowed($type, $modelUri)
{
+ $modelUri = (string)$modelUri;
$result = $this->areModelsAllowed($type, array($modelUri));
- return $result[(string)$modelUri];
+ if (isset($result[$modelUri])) {
+ return $result[$modelUri];
+ }
+ return false;
}
/**

0 comments on commit 3bcc4d0

Please sign in to comment.
Something went wrong with that request. Please try again.