Skip to content

Commit

Permalink
Merge branch 'develop' into eng-190
Browse files Browse the repository at this point in the history
  • Loading branch information
saifullah-talukder committed Jun 25, 2024
2 parents 0bc64bf + 339e307 commit 805ce6f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/src/users/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ use std::fmt::Debug;
pub enum UserGroup {
Alpha,
Beta,
}
Public,
} // Move Public to top before public release

impl From<i32> for UserGroup {
fn from(value: i32) -> Self {
match value {
0 => UserGroup::Alpha,
_ => UserGroup::Beta,
0 => UserGroup::Alpha,
1 => UserGroup::Beta,
_ => UserGroup::Public,
}
}
}
Expand Down

0 comments on commit 805ce6f

Please sign in to comment.