lemmy/crates/db_views/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_report_view.rs Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
comment_view.rs Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
custom_emoji_view.rs Add banned_from_community to PostView and CommentView (#4552) 2024-03-22 18:31:08 -04:00
lib.rs Creating a LocalImageView, so that front ends have the Person struct. (#4631) 2024-04-16 19:20:44 -04:00
local_image_view.rs Creating a LocalImageView, so that front ends have the Person struct. (#4631) 2024-04-16 19:20:44 -04:00
local_user_view.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
post_report_view.rs Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
post_view.rs Add show_nsfw override filter to GetPosts. (#4889) 2024-07-09 13:44:23 -04:00
private_message_report_view.rs Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00
private_message_view.rs Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00
registration_application_view.rs Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
site_view.rs Make all single-fetch database calls return an Option. (#4617) 2024-04-16 14:48:15 +02:00
structs.rs Adding an image_details table to store image dimensions. (#4704) 2024-06-20 12:44:06 +02:00
vote_view.rs Remove PersonInsertForm builder (#4779) 2024-06-06 08:29:18 -04:00