function add($entity) { $allowed_entity = $this->authorize_create($entity); return parent::add($allowed_entity); }