lemmy/crates/apub/src/api
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
..
list_comments.rs Adding a show_read override to GetPosts. (#4846) 2024-06-21 17:39:40 -04:00
list_posts.rs Add show_nsfw override filter to GetPosts. (#4889) 2024-07-09 13:44:23 -04:00
mod.rs Adding an instance-level default_sort_type (#4454) 2024-02-16 09:36:46 -05:00
read_community.rs Fixing not being able to create comments on local community posts. (#4854) 2024-07-07 12:28:42 -04:00
read_person.rs Adding a show_read override to GetPosts. (#4846) 2024-06-21 17:39:40 -04:00
resolve_object.rs Fixing not being able to create comments on local community posts. (#4854) 2024-07-07 12:28:42 -04:00
search.rs Refactor LocalUser settings conditions in database views (#4746) 2024-06-14 21:51:24 -04:00
user_settings_backup.rs Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00