feat: integrated OAuth2 server
This commit is contained in:
@@ -16,6 +16,7 @@ use Symfony\Component\HttpFoundation\StreamedResponse;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
use Symfony\Component\Security\Http\Attribute\IsGranted;
|
||||
use Symfony\Contracts\Cache\CacheInterface;
|
||||
|
||||
use function Symfony\Component\String\u;
|
||||
|
||||
class DownloadController extends AbstractController
|
||||
@@ -42,7 +43,7 @@ class DownloadController extends AbstractController
|
||||
requirements: ['id' => '\d+'],
|
||||
defaults: ['fileType' => 'invoice']
|
||||
)]
|
||||
#[IsGranted("ROLE_USER")]
|
||||
#[IsGranted('ROLE_USER')]
|
||||
public function documents(int $id, string $fileType): Response
|
||||
{
|
||||
/** @var User $user */
|
||||
|
||||
Reference in New Issue
Block a user