evazion
a35f49e905
searchable: add framework for defining user search permissions.
...
Add a `visible_for_search` method to ApplicationPolicy that lets us
define which fields a user is allowed to search for.
For example, when a normal user searches for post flags by flagger name,
they're only allowed to see their own flags, not flags by other users.
But when a mod searches for flags by flagger name, they're allowed to
see all flags, except for flags on their own uploads.
This framework lets us define these rules in the `visible_for_search`
method in the model's policy class, rather than as special cases in the
`search` method of each model.
2022-09-22 01:51:23 -05:00
..
2022-06-26 00:43:57 -05:00
2021-12-14 21:33:27 -06:00
2022-09-22 01:51:23 -05:00
2021-12-14 21:33:27 -06:00
2022-09-22 01:51:23 -05:00
2021-12-14 21:33:27 -06:00
2022-09-22 01:51:23 -05:00
2021-12-14 21:33:27 -06:00
2022-01-04 17:20:43 -06:00
2021-12-14 21:33:27 -06:00
2022-06-01 14:07:30 +02:00
2022-09-16 05:39:25 -05:00
2021-12-14 21:33:27 -06:00
2022-01-20 21:50:31 -06:00
2022-09-22 01:51:23 -05:00
2021-12-14 21:33:27 -06:00
2022-05-02 15:56:16 -05:00
2021-12-14 21:33:27 -06:00
2022-01-21 22:35:20 -06:00
2021-12-14 21:33:27 -06:00
2022-01-13 12:49:20 -06:00
2022-09-17 21:32:26 -05:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2022-05-04 23:19:53 -05:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2022-02-06 14:39:08 -06:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2022-09-22 01:51:23 -05:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2022-09-22 01:51:23 -05:00
2021-12-14 21:33:27 -06:00
2022-06-05 15:51:58 -05:00
2022-04-11 21:05:44 +02:00
2021-12-14 21:33:27 -06:00
2022-02-03 19:41:04 -06:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2022-04-09 20:16:55 +02:00
2022-09-11 18:41:16 -05:00
2022-06-01 18:31:46 -05:00
2022-02-14 00:41:08 -06:00
2022-02-21 00:03:43 -06:00
2022-09-16 05:39:25 -05:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00
2022-03-08 03:29:15 -06:00
2022-08-28 23:16:33 -05:00
2021-12-14 21:33:27 -06:00
2022-05-17 01:24:38 -05:00
2021-12-14 21:33:27 -06:00
2022-09-22 01:51:23 -05:00