Hide registration form if max registration reached

See https://github.com/FreshRSS/FreshRSS/issues/679
This commit is contained in:
Marien Fressinaud
2015-07-22 14:00:08 +02:00
parent 02c3546440
commit f560c44a00
3 changed files with 10 additions and 1 deletions

View File

@@ -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);
}
}
}