mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-12-29 06:58:51 +00:00
Fix incorrect check
This commit is contained in:
parent
b45e5c4d0a
commit
373eb6b4b0
@ -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!");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user