Enforce systen.register_policy value type

This commit is contained in:
Hypolite Petovan
2018-07-15 15:04:48 -04:00
parent 9b01a23c9b
commit 67dc08d120
14 changed files with 19 additions and 19 deletions

View File

@@ -42,7 +42,7 @@ function uimport_post(App $a)
function uimport_content(App $a) {
if ((!local_user()) && (Config::get('config', 'register_policy') === REGISTER_CLOSED)) {
if ((!local_user()) && (intval(Config::get('config', 'register_policy')) === REGISTER_CLOSED)) {
notice("Permission denied." . EOL);
return;
}