Fixed an issue loading file fails in Desktop mode

This commit is contained in:
Nikhil Mohite 2023-03-31 10:47:48 +05:30 committed by GitHub
parent ce637ecd4b
commit 50391ae3fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1810,7 +1810,7 @@ def load_file():
# retrieve storage directory path
storage_manager_path = get_storage_directory(
shared_storage=file_data['storage'])
shared_storage=file_data['storage'] if 'storage' in file_data else '')
try:
Filemanager.check_access_permission(storage_manager_path, file_path)