diff --git a/package.json b/package.json index 65ed368..cc5a78b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ily.li", - "version": "0.4.3", + "version": "0.4.4", "description": "Self-hosted file pusher", "repository": "git@gitlab.com:ArisuOngaku/ily.li.git", "author": "Alice Gaudon ", 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 %}