<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

namespace Kufer\KuferTools\Allgemein\PersoenlicheDaten\PersoenlicheDaten;

class PersoenlicheDatenHmUseCase extends PersoenlicheDatenUseCase
{
  public static function getToolSectionId()
  {
    return 91;
  }

  protected function isBearbeitbar()
  {
    return $this->isRechtAllowed('91.0.1');
  }

  protected function getPerson($user)
  {
    $dbwAdresse = new \DBWorkAdresse(1, true);

    return $dbwAdresse->getAdresse($user->anr, true);
  }
}