diff options
| author | 2015-07-21 15:31:23 +0200 | |
|---|---|---|
| committer | 2015-07-21 15:31:23 +0200 | |
| commit | ac8bd3d2512dd1bfca43d71ea10202ba9e6a82a6 (patch) | |
| tree | dc1758f0444723e8b1ff8ffa73a5aa481f2ac441 /app/Models | |
| parent | fa76e863c5622609b944542b0255c30f2f67c97e (diff) | |
Add a max_registrations limit
- Allow user to create accounts (not implemented)
- Admin only can set this limit
See https://github.com/FreshRSS/FreshRSS/issues/679
Diffstat (limited to 'app/Models')
| -rw-r--r-- | app/Models/ConfigurationSetter.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php index 4bd29ecb0..236bf5b0b 100644 --- a/app/Models/ConfigurationSetter.php +++ b/app/Models/ConfigurationSetter.php @@ -352,6 +352,9 @@ class FreshRSS_ConfigurationSetter { 'min' => 0, 'max' => $max_small_int, ), + 'max_registrations' => array( + 'min' => 0, + ), ); foreach ($values as $key => $value) { |
