mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
gotta catch 'em all (#9676)
This commit is contained in:
@@ -217,7 +217,7 @@ def menu_data():
|
||||
if not g.user.is_anonymous:
|
||||
try:
|
||||
logo_target_path = (
|
||||
appbuilder.app.config.get("LOGO_TARGET_PATH")
|
||||
appbuilder.app.config["LOGO_TARGET_PATH"]
|
||||
or f"/profile/{g.user.username}/"
|
||||
)
|
||||
# when user object has no username
|
||||
@@ -244,10 +244,10 @@ def menu_data():
|
||||
"width": appbuilder.app.config["APP_ICON_WIDTH"],
|
||||
},
|
||||
"navbar_right": {
|
||||
"bug_report_url": appbuilder.app.config.get("BUG_REPORT_URL"),
|
||||
"documentation_url": appbuilder.app.config.get("DOCUMENTATION_URL"),
|
||||
"version_string": appbuilder.app.config.get("VERSION_STRING"),
|
||||
"version_sha": appbuilder.app.config.get("VERSION_SHA"),
|
||||
"bug_report_url": appbuilder.app.config["BUG_REPORT_URL"],
|
||||
"documentation_url": appbuilder.app.config["DOCUMENTATION_URL"],
|
||||
"version_string": appbuilder.app.config["VERSION_STRING"],
|
||||
"version_sha": appbuilder.app.config["VERSION_SHA"],
|
||||
"languages": languages,
|
||||
"show_language_picker": len(languages.keys()) > 1,
|
||||
"user_is_anonymous": g.user.is_anonymous,
|
||||
|
||||
Reference in New Issue
Block a user