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

namespace Kufer\KuferTools\Firma\Dokumente\DokumenteUpload;

class DokumenteUploadFormularUseCase extends \Kufer\KuferTools\Basis\Dokumente\DokumenteUpload\DokumenteUploadFormularUseCase
{
  public static function getToolId()
  {
    return \ToolsAPI::TOOL_DOKUMENTE_FA;
  }

  public static function getToolSectionId()
  {
    return 753;
  }

  protected function isUploadAllowed(): bool
  {
    return $this->isRechtAllowed('754.0.1');
  }

  protected function isAdminUserUploadNotAllowed(): bool
  {
    return $this->getUser()->tnr <= 0;
  }
}