-
-
Notifications
You must be signed in to change notification settings - Fork 84
Closed
Description
--------------------------------------------------------------------------------
Check manually 126 Missing explicit access check on entity query.
--------------------------------------------------------------------------------
Code
if ($composite_revision->isDefaultRevision()) {
$count = $composite_storage
->getQuery()
->accessCheck(FALSE)
->allRevisions()
->condition($composite_storage->getEntityType()->getKey('id'), $composite_revision->id())
->count()
->execute();
if ($count <= 1) {
$composite_revision->delete();
return TRUE;
}
}
Metadata
Metadata
Assignees
Labels
No labels