diff --git a/src/controllers/FileController.ts b/src/controllers/FileController.ts index 7a0ff66..8bb1e00 100644 --- a/src/controllers/FileController.ts +++ b/src/controllers/FileController.ts @@ -97,7 +97,7 @@ export default class FileController extends Controller { switch (file.storage_type) { case 'local': - await this.deleteFile(file); + await FileController.deleteFile(file); break; default: throw new ServerError(`This file cannot be deleted. Deletion protocol for ${file.storage_type} storage type not implemented.`); diff --git a/views/file-manager.njk b/views/file-manager.njk index 29927ed..5376b9c 100644 --- a/views/file-manager.njk +++ b/views/file-manager.njk @@ -43,6 +43,7 @@ Pending deletion {% else %}
+ {{ macros.csrf(getCSRFToken) }}
{% endif %}