app/Service/Security/Voter/Invoice/CreateInvoiceVoter.php line 7

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Sq\Service\Security\Voter\Invoice;
  3. use Sq\Service\Security\Voter\SecurityAttributes;
  4. class CreateInvoiceVoter extends AbstractInvoiceVoter
  5. {
  6.     protected function getSupportedAttributeName(): string
  7.     {
  8.         return SecurityAttributes::CREATE;
  9.     }
  10.     protected function getValidRolesForAttribute(): array
  11.     {
  12.         return [];
  13.     }
  14.     protected function isAllowedWhenImpersonating(): bool
  15.     {
  16.         return false;
  17.     }
  18. }