mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Allow setting custom username for shared servers, with default as username of server being shared. #6229
This commit is contained in:
@@ -130,7 +130,8 @@ def load_servers():
|
||||
data = json.loads(j.read())
|
||||
|
||||
# Validate the json file and data
|
||||
errmsg = validate_json_data(data, False)
|
||||
errmsg = validate_json_data(
|
||||
data, current_user.has_role("Administrator"))
|
||||
if errmsg is not None:
|
||||
return internal_server_error(errmsg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user