Skip to content

Commit 6cafac7

Browse files
Auto merge of #647 - lennart/fix-core, r=lucassshanks
fix(core): cedar policy Fixes the cedar policy again. Forgot in #645 Requested-by: lennartkloock <[email protected]> Reviewed-by: lucassshanks <[email protected]>
2 parents 7f6645a + 4047ad1 commit 6cafac7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cloud/core/db-types/src/models/sessions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ pub struct UserSession {
9191
pub device_pk_data: Vec<u8>,
9292
pub last_used_at: chrono::DateTime<chrono::Utc>,
9393
pub last_ip: ipnetwork::IpNetwork,
94+
#[serde(skip_serializing_if = "Option::is_none")]
9495
pub last_user_agent: Option<String>,
9596
#[serde(skip_serializing_if = "Option::is_none")]
9697
pub token_id: Option<UserSessionTokenId>,

cloud/core/static_policies.cedarschema

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ entity UserSession {
118118
device_pk_data: Set<Long>,
119119
last_used_at: String,
120120
last_ip: String,
121+
last_user_agent?: String,
121122
token_id?: String,
122123
token?: Set<Long>,
123124
token_expires_at?: String,

0 commit comments

Comments
 (0)