check schema version on backend calls because session stuff does it anyway and it's already cached

master
Andrew Dolgov 4 years ago
parent 1bb0d9b603
commit bf02afed45

@ -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"),

Loading…
Cancel
Save