Bug fixes + multi threading

This commit is contained in:
simon987
2019-03-10 20:15:53 -04:00
parent 36b9ed6cb7
commit 746ad25a4e
9 changed files with 157 additions and 50 deletions

2
run.py
View File

@@ -241,7 +241,7 @@ def search_liste_page():
def get_allowed_dirs(username):
if config.allow_guests:
return [x for x in storage.dirs() if x.enabled]
return [x for x in storage.dirs() if storage.dirs()[x].enabled]
if username:
user = storage.users()[username]
return [x for x in storage.dirs() if storage.dirs()[x].enabled and x in user.readable_directories]