From 373eb6b4b0d93a57ea7b8232d0e45f116443d105 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 21 Mar 2020 18:38:47 +0100 Subject: [PATCH] Fix incorrect check --- src/controllers/SettingsController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/SettingsController.ts b/src/controllers/SettingsController.ts index 4d986eb..da89050 100644 --- a/src/controllers/SettingsController.ts +++ b/src/controllers/SettingsController.ts @@ -63,7 +63,7 @@ export class SettingsController { if(virtualDirectory.length > 0) { virtualDirectory = h.postVirtualDirectory("virtualDirectory"); - if(!checkVirtualDirectoryAvailability(virtualDirectory, h.getUserId(), VirtualDirType.USER)) + if(!await checkVirtualDirectoryAvailability(virtualDirectory, h.getUserId(), VirtualDirType.USER)) h.error(401, "The specified virtual directory is not available!"); }