allow admin to bypass user creation block
This commit is contained in:
parent
05da99c428
commit
b5b7fe7d9e
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,7 @@ class UserPage extends Extension
|
|||
if (!$user->can(Permissions::CREATE_USER)) {
|
||||
throw new UserCreationException("Account creation is currently disabled");
|
||||
}
|
||||
if (!$config->get_bool("login_signup_enabled")) {
|
||||
if (!$config->get_bool("login_signup_enabled") && !$user->can(Permissions::CREATE_OTHER_USER)) {
|
||||
throw new UserCreationException("Account creation is currently disabled");
|
||||
}
|
||||
if (strlen($name) < 1) {
|
||||
|
|
Reference in a new issue