X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi_common%2Fsrc%2Flib.rs;h=6dcdb58bd7311ac5feb907dc7d7d4d3d5f47ff3d;hb=e65c45f15272b5f43053a214600ee3b8cebffc0d;hp=7ac95450f5431b381f3f96af72fb53408be48e2d;hpb=41b90bb162f172b289470368c169fffb69106658;p=lemmy.git diff --git a/crates/api_common/src/lib.rs b/crates/api_common/src/lib.rs index 7ac95450..6dcdb58b 100644 --- a/crates/api_common/src/lib.rs +++ b/crates/api_common/src/lib.rs @@ -132,7 +132,7 @@ pub async fn get_local_user_view_from_jwt( let local_user_view = blocking(pool, move |conn| LocalUserView::read(conn, local_user_id)).await??; // Check for a site ban - if local_user_view.person.banned { + if local_user_view.person.is_banned() { return Err(LemmyError::from_message("site_ban")); } @@ -187,7 +187,7 @@ pub async fn get_local_user_settings_view_from_jwt( }) .await??; // Check for a site ban - if local_user_view.person.banned { + if local_user_view.person.is_banned() { return Err(LemmyError::from_message("site_ban")); }