mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(files_sharing): Set higher priority for listeners that may abort the request
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
0c293b3569
commit
d9b2178ee1
1 changed files with 3 additions and 3 deletions
|
|
@ -100,9 +100,9 @@ class Application extends App implements IBootstrap {
|
|||
$context->registerEventListener(BeforeNodeReadEvent::class, BeforeNodeReadListener::class);
|
||||
$context->registerEventListener(BeforeZipCreatedEvent::class, BeforeNodeReadListener::class);
|
||||
|
||||
// Handle download events for view only checks
|
||||
$context->registerEventListener(BeforeZipCreatedEvent::class, BeforeZipCreatedListener::class);
|
||||
$context->registerEventListener(BeforeDirectFileDownloadEvent::class, BeforeDirectFileDownloadListener::class);
|
||||
// Handle download events for view only checks. Priority higher than 0 to run early.
|
||||
$context->registerEventListener(BeforeZipCreatedEvent::class, BeforeZipCreatedListener::class, 5);
|
||||
$context->registerEventListener(BeforeDirectFileDownloadEvent::class, BeforeDirectFileDownloadListener::class, 5);
|
||||
|
||||
// File request auth
|
||||
$context->registerEventListener(BeforeTemplateRenderedEvent::class, LoadPublicFileRequestAuthListener::class);
|
||||
|
|
|
|||
Loading…
Reference in a new issue