summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-28 17:46:36 +0300
committerAndrew Dolgov <[email protected]>2021-02-28 17:46:36 +0300
commitbf02afed45d23ebb794434d95b2b6b52eed234ee (patch)
treeeb298191f69262fc679b54ee33776819e91aff5d /backend.php
parent1bb0d9b603128957c9b046864423e9b8c9385ddd (diff)
check schema version on backend calls because session stuff does it anyway and it's already cached
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 545d9634d..b6377c48f 100644
--- a/backend.php
+++ b/backend.php
@@ -51,6 +51,11 @@
UserHelper::load_user_plugins($_SESSION["uid"]);
}
+ if (Config::get_schema_version() !== SCHEMA_VERSION) {
+ print Errors::to_json(Errors::E_SCHEMA_MISMATCH);
+ return;
+ }
+
$purge_intervals = array(
0 => __("Use default"),
-1 => __("Never purge"),