Skip to content

Commit 7194e07

Browse files
committed
[BUGFIX] Do not pass empty page-record to authentication check
1 parent 070e0e2 commit 7194e07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Classes/Domain/Service/PermissionTrait.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ private function isAuthenticatedForRecord(int $identifier, string $table): bool
7272

7373
$pageIdentifier = $this->getPageIdentifierFromRecord($identifier, $table);
7474
if ($pageIdentifier > 0) {
75-
return $this->isAuthenticatedForPageRow($this->getPageRowFromPageIdentifier($pageIdentifier));
75+
$pageRecord = $this->getPageRowFromPageIdentifier($pageIdentifier);
76+
if ($pageRecord === []) {
77+
return false;
78+
}
79+
return $this->isAuthenticatedForPageRow($pageRecord);
7680
}
7781
return false;
7882
}

0 commit comments

Comments
 (0)