fix: feature gate some guest features in the backend

This commit is contained in:
Evan Carroll 2026-01-19 01:03:46 -06:00
parent 39750c1d82
commit 226c2e02b5
3 changed files with 33 additions and 0 deletions

View file

@ -451,6 +451,13 @@ pub struct User {
pub updated_at: DateTime<Utc>,
}
impl User {
/// Check if this user is a guest (has the Guest tag).
pub fn is_guest(&self) -> bool {
self.tags.contains(&UserTag::Guest)
}
}
/// Minimal user info for display purposes.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct UserSummary {