pub fn is_user_banned(user_uuid: UserUuid, conn: &PgConnection) -> BackendResult<bool> {
        use crate::schema::users::dsl::*;

        users
            .find(user_uuid.0)
            .select(banned)
            .first::<bool>(conn)
            .map_err(handle_err::<User>)
    }
/// If the user has their banned flag set, this will return true.
If the user has their banned flag set, this will return true.
If the user has their banned flag set this will return true .
pub fn is_user_banned(user_uuid: UserUuid, conn: &PgConnection) -> BackendResult<bool> {
        use crate::schema::users::dsl::*;
        users
            .find(user_uuid.0)
            .select(banned)
            .first::<bool>(conn)
            .map_err(handle_err::<User>)
    }
pub fn is_user_banned ( user_uuid : UserUuid , conn : & PgConnection ) -> BackendResult < bool > { use crate :: schema :: users :: dsl :: * ; users . find ( user_uuid . 0 ) . select ( banned ) . first :: < bool > ( conn ) . map_err ( handle_err :: < User > ) }
If the user has their banned flag set, this will return true.
If the user has their banned flag set this will return true .
user_uuid
UserUuid
conn
&PgConnection
user_uuid
UserUuid
conn
&PgConnection