diff options
author | Andrew Dolgov <[email protected]> | 2021-02-28 17:46:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-28 17:46:36 +0300 |
commit | bf02afed45d23ebb794434d95b2b6b52eed234ee (patch) | |
tree | eb298191f69262fc679b54ee33776819e91aff5d /backend.php | |
parent | 1bb0d9b603128957c9b046864423e9b8c9385ddd (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.php | 5 |
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"), |