From 55a6c74e0a2a78acddd9242fcbb155ede5736ba8 Mon Sep 17 00:00:00 2001 From: Alexander Finkhäuser Date: Sat, 18 Apr 2015 00:27:35 +0200 Subject: Added config option max_invitation_keys --- application/controllers/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/controllers/user.php') 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."); } -- cgit v1.2.3-24-g4f1b