diff options
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/user.php b/application/controllers/user.php index 33d0efb6b..1e0416c73 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -135,7 +135,7 @@ class User extends MY_Controller { ->where('action', 'invitation') ->count_all_results(); - if ($invitations + 1 > 3) { + if ($invitations + 1 > $this->config->item('max_invitation_keys')) { throw new \exceptions\PublicApiException("user/invitation-limit", "You can't create more invitation keys at this time."); } |