Enforce systen.register_policy value type
This commit is contained in:
parent
9b01a23c9b
commit
67dc08d120
14 changed files with 19 additions and 19 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue