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
..
2021-12-23 10:53:17 +00:00
2022-01-05 18:45:08 +01:00
2022-01-21 14:29:51 +10:00
2022-02-03 10:36:32 +10:00
2021-12-08 13:13:59 -06:00
2021-12-17 14:03:35 +01:00
2021-10-13 12:53:23 +03:00
2019-10-02 14:01:53 +10:00
2021-10-29 20:46:25 +02:00
2019-10-02 14:01:53 +10:00
2021-11-17 23:27:30 +03:00
2020-05-15 14:23:27 +08:00
2022-01-05 18:45:08 +01:00
2019-10-14 12:57:33 +05:30
2020-04-08 12:42:28 +10:00
2021-12-13 17:36:29 +01:00
2021-12-13 10:50:09 +00:00
2021-12-22 11:09:43 -06:00
2021-11-23 13:54:51 +02:00
2022-02-03 11:26:53 +08:00
2021-09-02 14:55:38 -04:00
2020-07-24 17:19:21 +08:00
2021-05-21 11:43:47 +10:00
2021-01-04 10:34:44 +01:00
2021-08-24 10:46:28 +03:00
2021-12-22 16:01:34 -07:00
2021-03-22 19:41:42 +02:00
2021-11-17 23:27:30 +03:00
2019-10-02 14:01:53 +10:00
2021-08-10 10:25:15 -04:00
2021-06-22 13:00:04 -05:00
2019-10-02 14:01:53 +10:00
2021-02-23 16:20:59 -05:00
2021-10-06 17:42:04 +03:00
2021-12-01 16:10:40 +00:00
2021-11-23 13:00:45 +02:00
2021-11-09 17:20:09 +11:00
2019-12-03 10:05:53 +01:00
2020-03-10 22:13:17 +01:00
2021-05-21 11:43:47 +10:00
2021-11-25 09:34:39 +02:00
2020-12-14 17:49:37 +02:00
2022-01-21 17:54:18 +02:00
2021-11-05 14:20:14 -03:00
2021-12-22 11:09:43 -06:00
2021-11-17 23:27:30 +03:00
2021-09-17 10:41:34 +02:00
2021-05-21 11:43:47 +10:00
2022-01-20 14:12:34 +08:00
2021-01-20 21:32:22 +01:00
2021-05-21 11:43:47 +10:00
2019-10-02 14:01:53 +10:00
2021-05-21 11:43:47 +10:00
2022-01-31 15:35:12 +08:00
2021-05-21 11:43:47 +10:00
2021-10-29 20:15:10 +02:00
2021-12-27 11:25:37 -03:00
2021-12-22 11:09:43 -06:00
2021-12-15 11:41:14 -06:00
2019-10-02 14:01:53 +10:00
2021-06-30 15:51:35 +03:00
2021-12-15 11:41:14 -06:00
2021-08-27 16:26:06 +01:00
2022-01-24 11:33:23 +11:00
2021-08-11 08:39:25 +10:00
2022-02-03 13:07:40 -06:00
2019-11-27 16:11:49 +11:00
2022-01-31 15:35:12 +08:00
2019-10-02 14:01:53 +10:00
2021-11-08 09:16:38 +10:00
2021-07-07 18:57:42 +02:00
2021-07-07 18:57:42 +02:00
2021-06-21 11:06:58 +08:00
2022-01-10 13:49:26 +08:00
2019-11-11 11:18:12 +11:00
2021-07-07 18:57:42 +02:00
2021-12-02 09:33:03 -06:00
2021-05-21 11:43:47 +10:00
2020-07-27 10:23:54 +10:00
2020-09-22 10:17:52 +10:00
2021-05-24 18:13:30 +10:00
2021-05-03 09:21:35 +02:00
2021-09-16 07:58:53 +05:30
2021-06-15 17:25:06 +02:00
2021-01-25 12:04:27 +01:00
2021-10-28 11:59:46 +05:30
2020-03-10 22:13:17 +01:00
2021-12-20 12:59:10 -06:00
2021-07-16 15:25:49 -03:00
2021-12-07 10:14:45 +01:00
2021-08-05 12:56:15 +08:00
2019-10-02 14:01:53 +10:00
2021-07-05 14:17:31 +08:00
2021-06-08 13:25:51 -04:00
2021-08-10 17:25:11 +05:30
2021-12-21 21:13:05 +04:00
2020-10-12 22:54:56 +02:00