Files
NodeBB/test
Julian Lam 8e5a2276af feat: check flag values on save (assignee and state) (#8122)
* feat: add assignee checking when updating flag

Prior to this, it was possible to update the assignee to any value (or
any user. This commit adds checking to allow only admins, global
moderators, or in the case of flagged posts, moderators.

Also some prep work was added for value checking `state`.

* feat: value checking `state` on flag update

The state should be one of the constants defined earlier in the file.
2020-01-20 10:19:23 -05:00
..
2018-09-20 17:05:52 -04:00
2019-09-20 11:44:49 -04:00
2017-02-18 15:05:36 -07:00
2019-07-09 12:46:49 -04:00
2019-06-22 21:23:32 -04:00
2019-10-05 17:05:52 -04:00
2019-03-08 14:26:11 -05:00
2019-11-01 22:13:00 -04:00
2018-12-18 19:43:28 -05:00
2018-12-10 15:30:10 -05:00
2018-03-20 10:32:53 -04:00
2018-10-20 14:40:48 -04:00
2019-09-23 22:30:17 -04:00
2017-05-28 17:21:49 -04:00
2019-11-01 22:13:00 -04:00
2018-10-16 17:21:03 -04:00
2019-11-01 22:13:00 -04:00
2017-02-18 12:30:49 -07:00
2020-01-17 11:16:23 -05:00
2018-10-17 14:58:34 -04:00
2019-09-17 09:12:45 -04:00
2018-11-09 15:09:47 -05:00
2018-10-18 16:33:34 -04:00
2019-10-11 12:44:34 -04:00
2019-04-29 10:59:52 -04:00
2019-10-16 13:33:00 -04:00
2020-01-19 14:57:06 -05:00