fix: feature gate some guest features in the backend
This commit is contained in:
parent
39750c1d82
commit
226c2e02b5
3 changed files with 33 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue