Update delete.php

fix(pages): can delete comments if canEdit page container

Fixes #7007