mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-07 22:53:45 -06:00
Fixed an issue where taking backup of a shared server was using server owner's user name. #7255
This commit is contained in:
parent
e99fc02f9e
commit
1bcf343ceb
@ -1144,7 +1144,7 @@ class ServerNode(PGChildNodeView):
|
||||
con_info_ord = OrderedDict([('host', server.host),
|
||||
('port', server.port),
|
||||
('dbname', db_name),
|
||||
('user', server.username)])
|
||||
('user', manager.user)])
|
||||
con_info_ord.update(con_info)
|
||||
display_conn_string = make_conninfo(**con_info_ord)
|
||||
return display_conn_string
|
||||
|
@ -221,7 +221,7 @@ def _get_args_params_values(data, conn, backup_obj_type, backup_file, server,
|
||||
'--port',
|
||||
port,
|
||||
'--username',
|
||||
server.username,
|
||||
manager.user,
|
||||
'--no-password'
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user