diff options
author | Alexander Finkhäuser <alex@elaon.de> | 2015-04-18 00:27:35 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-04-18 09:24:37 +0200 |
commit | 55a6c74e0a2a78acddd9242fcbb155ede5736ba8 (patch) | |
tree | 61ae4f221b1add52c6ef7f050b776dcfc3140ae2 /application/controllers/user.php | |
parent | 84b8cf26000c8709c49ff8811dc6c7c34b1406f0 (diff) |
Added config option max_invitation_keys
Diffstat (limited to 'application/controllers/user.php')
-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."); } |