mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Make if more comprehensive
This commit is contained in:
parent
24f9b64d59
commit
3cb18f2da4
@ -81,8 +81,7 @@ class ApiImportFilesIndexHandler(BaseApiHandler):
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if not self.helper.check_path_exists(folder):
|
if not self.helper.check_path_exists(folder) and user_id:
|
||||||
if user_id:
|
|
||||||
user_lang = self.controller.users.get_user_lang_by_id(user_id)
|
user_lang = self.controller.users.get_user_lang_by_id(user_id)
|
||||||
self.helper.websocket_helper.broadcast_user(
|
self.helper.websocket_helper.broadcast_user(
|
||||||
user_id,
|
user_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user