lemmy/crates/api_crud/src/comment
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
..
create.rs Fixing not being able to create comments on local community posts. (#4854) 2024-07-07 12:28:42 -04:00
delete.rs Fixing not being able to create comments on local community posts. (#4854) 2024-07-07 12:28:42 -04:00
mod.rs Rewrite some API handlers to remove Perform trait (#3735) 2023-07-28 10:39:38 -04:00
read.rs Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00
remove.rs Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
update.rs Fixing not being able to create comments on local community posts. (#4854) 2024-07-07 12:28:42 -04:00