fix #691
This commit is contained in:
parent
fb2fe58b57
commit
5b5e9d8d7a
@ -435,7 +435,7 @@ class UserPage extends Extension
|
|||||||
private function page_create()
|
private function page_create()
|
||||||
{
|
{
|
||||||
global $config, $page, $user;
|
global $config, $page, $user;
|
||||||
if ($user->can(Permissions::CREATE_USER)) {
|
if (!$user->can(Permissions::CREATE_USER)) {
|
||||||
$this->theme->display_error(403, "Account creation blocked", "Account creation is currently disabled");
|
$this->theme->display_error(403, "Account creation blocked", "Account creation is currently disabled");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user