lemmy/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
..
api_routes_http.rs Configure max comment width in clippy (#4738) 2024-05-23 08:46:26 -04:00
code_migrations.rs Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
lib.rs Relax timeout for sending activities (#4864) 2024-07-02 09:30:13 -04:00
main.rs Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00
prometheus_metrics.rs Include prometheus in default build, remove build feature (fixes #3558) (#4071) 2023-10-25 06:54:58 -04:00
root_span_builder.rs Fixing proxied images for federated posts. (#4737) 2024-05-23 11:11:25 -04:00
scheduled_tasks.rs Changing nodeinfo test from voyager.lemmy.ml to lemmy.ml (#4891) 2024-07-07 19:01:03 -04:00
session_middleware.rs Adding checks for higher admin and mod. (#4860) 2024-07-16 12:22:47 +02:00
telemetry.rs Convert all Result<..., LemmyError> into LemmyResult<...> Fixes #4613 (#4614) 2024-04-10 10:14:11 -04:00