Skip to content

Commit

Permalink
add ban to struct
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Oct 8, 2024
1 parent d22bef6 commit 320d450
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ pub struct User {
#[serde(with = "ts_seconds_option")]
pub last_updated: Option<DateTime<Utc>>,
pub is_admin: bool,
pub banned: bool
}

#[derive(Hash, Clone)]
Expand Down Expand Up @@ -149,6 +150,7 @@ impl<'r> FromRequest<'r> for Session {
created_at: Some(user.created_at),
last_updated: Some(user.last_updated),
is_admin: user.is_admin,
banned: user.banned
},
session_id: session.session_id,
access_token: session.access_token,
Expand Down

0 comments on commit 320d450

Please sign in to comment.