silverstripe/silverstripe-framework — pull request #3281 by halkyon (2014-07-10 23:26:02+00:00)
Title: BUG GridFieldDeleteAction limited permissions cannot remove relation

GridFieldDeleteAction is checking the record canEdit() method, but
that's not appropriate, as it applies to *editing* the record, not
unlinking the relation of the parent to the record.

Check if there's a parent and check canEdit() on that instead. If
there's no parent, fallback to record canEdit().