Hide registration form if max registration reached

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

No files matched your search

+3
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);
}
}
}