janzenisaac
cffc2836cb
DEV: Don't allow users to immediately reinvite ( #15722 )
...
- Limit bulk re-invite to 1 time per day
- Move bulk invite by csv behind a site setting (hidden by default)
- Bump invite expiry from 30 -> 90 days
## Updates to rate_limiter
When limiting reinvites I found that **staff** are never limited in any way. So I updated the **rate_limiter** model to allow for a few things:
- add an optional param of `staff_limit`, which (when included and passed values, and the user passes `.staff?`) will override the default `max` & `secs` values and apply them to the user.
- in the case you **do** pass values to `staff_limit` but the user **does not** pass `staff?` the standard `max` & `secs` values will be applied to the user.
This should give us enough flexibility to
1. continue to apply a strict rate limit to a standard user
2. but also apply a secondary (less strict) limit to staff
2022-02-03 13:07:40 -06:00
..
2022-02-01 16:15:18 +01:00
2022-01-11 14:21:34 +01:00
2022-01-11 14:21:34 +01:00
2022-01-11 14:21:34 +01:00
2022-01-11 14:21:34 +01:00
2022-01-11 14:21:34 +01:00
2022-02-01 16:15:18 +01:00
2022-01-23 11:14:20 +01:00
2022-02-01 16:15:18 +01:00
2021-05-18 15:11:41 +02:00
2022-01-27 14:03:45 -05:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-01-18 14:41:41 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-01-18 14:41:41 +01:00
2022-02-01 16:15:18 +01:00
2022-01-11 14:21:34 +01:00
2022-01-11 14:21:34 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-01-11 14:21:34 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-01-11 14:21:34 +01:00
2022-01-11 14:21:34 +01:00
2022-02-01 16:15:18 +01:00
2022-01-11 14:21:34 +01:00
2022-01-11 14:21:34 +01:00
2022-01-11 14:21:34 +01:00
2022-01-11 14:21:34 +01:00
2022-02-01 16:15:18 +01:00
2022-01-11 14:21:34 +01:00
2022-01-11 14:21:34 +01:00
2022-01-11 14:21:34 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-01-11 14:21:34 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-01-11 14:21:34 +01:00
2021-07-27 22:47:59 +08:00
2019-05-13 09:31:32 +08:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2021-12-14 14:53:35 +01:00
2022-02-01 16:15:18 +01:00
2021-12-14 14:53:35 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2021-12-22 18:30:09 +01:00
2021-10-05 15:59:26 +02:00
2022-02-03 13:07:40 -06:00
2022-02-01 16:15:18 +01:00
2021-12-14 14:53:35 +01:00
2022-01-11 14:21:34 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2021-12-07 16:19:44 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2021-12-07 16:19:44 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2021-12-14 14:53:35 +01:00
2022-02-01 16:15:18 +01:00
2021-12-07 16:19:44 +01:00
2022-02-01 16:15:18 +01:00
2021-12-07 16:19:44 +01:00
2022-01-11 14:21:34 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2021-12-07 16:19:44 +01:00
2021-12-07 16:19:44 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2021-12-14 14:53:35 +01:00
2022-02-01 16:15:18 +01:00
2022-02-01 16:15:18 +01:00
2018-07-31 14:41:49 +10:00
2018-05-29 21:07:17 +02:00
2015-02-27 23:53:58 +01:00
2019-04-25 22:49:21 +02:00
2015-02-27 23:53:58 +01:00
2015-02-27 23:53:58 +01:00
2017-02-24 11:35:33 +01:00