Skip to content

Commit

Permalink
Add check if value is set on array to Ac
Browse files Browse the repository at this point in the history
  • Loading branch information
white-gecko committed Jun 3, 2015
1 parent fb19053 commit 3bcc4d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion library/Erfurt/Ac/Default.php
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 3bcc4d0

Please sign in to comment.