1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 01:35:56 +00:00

rpc/checkforupdates: restrict to administrative access level

This commit is contained in:
Andrew Dolgov
2018-12-16 19:08:41 +03:00
parent 957c44d177
commit 5c481fb249

View File

@@ -601,7 +601,7 @@ class RPC extends Handler_Protected {
function checkforupdates() {
$rv = [];
if (CHECK_FOR_UPDATES && defined("GIT_VERSION_TIMESTAMP")) {
if (CHECK_FOR_UPDATES && $_SESSION["access_level"] >= 10 && defined("GIT_VERSION_TIMESTAMP")) {
$content = @fetch_file_contents(["url" => "https://tt-rss.org/version.json"]);
if ($content) {