lemmy/crates/api/src
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
..
comment Fixing not being able to create comments on local community posts. (#4854) 2024-07-07 12:28:42 -04:00
comment_report Fixing not being able to create comments on local community posts. (#4854) 2024-07-07 12:28:42 -04:00
community Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
local_user Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
post Fixing not being able to create comments on local community posts. (#4854) 2024-07-07 12:28:42 -04:00
post_report Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
private_message Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
private_message_report Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
site Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
lib.rs Replace wav with hound (#4788) 2024-06-07 10:27:49 -04:00
sitemap.rs Fixing some clippy and woodpecker lints. (#4565) 2024-03-26 10:17:42 +01:00