aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/authController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-07-22 14:00:08 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-07-22 14:00:08 +0200
commitf560c44a003ca69644f8e7262dca2f8f7e6932d5 (patch)
treea3274b38758fa56c2c4647793380eec57eeab122 /app/Controllers/authController.php
parent02c3546440f961018adc1e2c8e97c16f2aca18fc (diff)
Hide registration form if max registration reached
See https://github.com/FreshRSS/FreshRSS/issues/679
Diffstat (limited to 'app/Controllers/authController.php')
-rw-r--r--app/Controllers/authController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php
index 1c8ad2193..223282afb 100644
--- a/app/Controllers/authController.php
+++ b/app/Controllers/authController.php
@@ -351,5 +351,8 @@ class FreshRSS_auth_Controller extends Minz_ActionController {
* This action gives possibility to a user to create an account.
*/
public function registerAction() {
+ if (max_registrations_reached()) {
+ Minz_Error::error(403);
+ }
}
}