mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-30 01:05:18 +02:00
Allows staffs to invite members even when user registration is disabled (the most likely use case)
This commit is contained in:
parent
d7e1edea01
commit
f3a0fbf7da
@ -69,10 +69,6 @@ class InviteUserController extends Controller {
|
|||||||
throw new RequestException(ERRORS::USER_SYSTEM_DISABLED);
|
throw new RequestException(ERRORS::USER_SYSTEM_DISABLED);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Setting::getSetting('registration')->value) {
|
|
||||||
throw new RequestException(ERRORS::NO_PERMISSION);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->storeRequestData();
|
$this->storeRequestData();
|
||||||
|
|
||||||
$existentUser = User::getUser($this->userEmail, 'email');
|
$existentUser = User::getUser($this->userEmail, 'email');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user