lemmy/crates/api_crud/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 Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
community Allow empty string to clear URL-type DB fields. (#4780) 2024-06-06 09:55:08 -04:00
custom_emoji Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00
post Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
private_message Use trigger to generate apub URL in insert instead of update, and fix query planner options not being set when TLS is disabled (#4797) 2024-07-02 11:23:21 -04:00
site Allow empty string to clear URL-type DB fields. (#4780) 2024-06-06 09:55:08 -04:00
user Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
lib.rs Rewrite remaining federation actions, get rid of PerformCrud trait (#3794) 2023-08-02 12:52:41 -04:00