lemmy/crates
Dessalines ba044c7d98
Adding checks for higher admin and mod. (#4860)
* Adding checks for higher admin and mod.

* Adding admin/mod checks for ban and comment removal.

* Combining mod or admin check with an SQL union.

* Making community ban or add mod also allow higher admins.

* Making sure remove post also checks higher mods or admins.

* Add unit test for is_higher_mod_or_admin_check

* Fixing comment.

* Addressing PR comments.

* Get rid of pointless wrapper functions, return lemmyresult directly.
2024-07-16 12:22:47 +02:00
..
api Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
api_common Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
api_crud Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
apub Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
db_perf Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00
db_schema Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
db_views Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
db_views_actor Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
db_views_moderator Fixing extra modlog entries when post_id or comment_id is given. (#4664) 2024-04-25 10:26:17 +02:00
federate Revert "Remove unneeded error "last successful id is higher than latest id" (fixes #4363) (#4486)" (#4806) 2024-06-14 08:15:12 -04:00
routes Do pictrs transformations for proxied image urls. (#4895) 2024-07-11 17:31:31 +02:00
utils Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00