mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-09-03 20:52:57 -05:00
Revert "Make the file manager work a little more sanely with regard to paths."
This breaks things even more on Windows :-(
This reverts commit 35243b9869.
This commit is contained in:
@@ -18,7 +18,7 @@ import config
|
||||
def get_storage_directory():
|
||||
|
||||
if config.SERVER_MODE is not True:
|
||||
return '/'
|
||||
return None
|
||||
|
||||
storage_dir = getattr(
|
||||
config, 'STORAGE_DIR',
|
||||
@@ -30,7 +30,7 @@ def get_storage_directory():
|
||||
)
|
||||
|
||||
if storage_dir is None:
|
||||
return '/'
|
||||
return None
|
||||
|
||||
username = current_user.email.split('@')[0]
|
||||
if len(username) == 0 or username[0].isdigit():
|
||||
|
||||
Reference in New Issue
Block a user