on admin page, show warning when user hasn't enabled "check updates"

and send Accept-header when fetching changelog, so we can show an html version
instead of json when requested by regular browsers.
This commit is contained in:
Mechiel Lukkien
2023-02-27 15:03:37 +01:00
parent d3590caa2e
commit 67c97c6499
4 changed files with 22 additions and 1 deletions

View File

@ -636,6 +636,19 @@
}
],
"Returns": []
},
{
"Name": "CheckUpdatesEnabled",
"Docs": "CheckUpdatesEnabled returns whether checking for updates is enabled.",
"Params": [],
"Returns": [
{
"Name": "r0",
"Typewords": [
"bool"
]
}
]
}
],
"Sections": [],