Skip to content

Commit

Permalink
Fixes #2026
Browse files Browse the repository at this point in the history
Added check to see if array key for content type is set.
  • Loading branch information
vimishor committed Oct 30, 2014
1 parent 9ae591c commit fe92b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ private function isAllowedSingle($what, $user, $userRoles, $contenttype = null,
break;

case 'relatedto':
$contenttype = $parts[1];
$contenttype = isset($parts[1]) ? $parts[1] : '';
if (empty($contenttype)) {
$this->audit("Granting 'relatedto' globally (hard-coded override)");

Expand Down

0 comments on commit fe92b89

Please sign in to comment.