When you extend modObjectUpdateProcessor instead, you can replace this whole function just with 
```php
public $permission = 'save_document';
```