mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Make the file manager work a little more sanely with regard to paths.
This commit is contained in:
@@ -18,7 +18,7 @@ import config
|
||||
def get_storage_directory():
|
||||
|
||||
if config.SERVER_MODE is not True:
|
||||
return None
|
||||
return '/'
|
||||
|
||||
storage_dir = getattr(
|
||||
config, 'STORAGE_DIR',
|
||||
@@ -30,7 +30,7 @@ def get_storage_directory():
|
||||
)
|
||||
|
||||
if storage_dir is None:
|
||||
return None
|
||||
return '/'
|
||||
|
||||
username = current_user.email.split('@')[0]
|
||||
if len(username) == 0 or username[0].isdigit():
|
||||
|
||||
Reference in New Issue
Block a user