Fix calls to deprecated `get_delete_permission`