app/Service/Security/Voter/MobileApp/DeleteMobileAppVoter.php line 7

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Sq\Service\Security\Voter\MobileApp;
  3. use Sq\Service\Security\Voter\SecurityAttributes;
  4. class DeleteMobileAppVoter extends AbstractMobileAppVoter
  5. {
  6.     protected function getSupportedAttributeName(): string
  7.     {
  8.         return SecurityAttributes::DELETE;
  9.     }
  10.     protected function getValidRolesForAttribute(): array
  11.     {
  12.         // Only the app's user can create/edit/delete an app.
  13.         return [];
  14.     }
  15.     protected function isAllowedWhenImpersonating(): bool
  16.     {
  17.         return false;
  18.     }
  19. }