<?php declare(strict_types=1);
namespace Sq\Service\Security\Voter\MobileApp;
use Sq\Service\Security\Voter\SecurityAttributes;
class DeleteMobileAppVoter extends AbstractMobileAppVoter
{
protected function getSupportedAttributeName(): string
{
return SecurityAttributes::DELETE;
}
protected function getValidRolesForAttribute(): array
{
// Only the app's user can create/edit/delete an app.
return [];
}
protected function isAllowedWhenImpersonating(): bool
{
return false;
}
}