1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 13:29:22 +00:00

Fix incorrect check

This commit is contained in:
Pierre HUBERT 2020-03-21 18:38:47 +01:00
parent b45e5c4d0a
commit 373eb6b4b0

View File

@ -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!");
}