mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-12-26 23:25:56 -05:00
Fix send access regression
In a previous commit push notifications for mobile were added, but this introduced a header guard which caused issues with anonymous endpoints. This PR fixes this by using a uuid with only 0's. Fixes #3607
This commit is contained in:
parent
550794b127
commit
3c0cac623d
@ -374,7 +374,6 @@ pub struct SendAccessData {
|
||||
async fn post_access(
|
||||
access_id: &str,
|
||||
data: JsonUpcase<SendAccessData>,
|
||||
headers: Headers,
|
||||
mut conn: DbConn,
|
||||
ip: ClientIp,
|
||||
nt: Notify<'_>,
|
||||
@ -423,7 +422,7 @@ async fn post_access(
|
||||
UpdateType::SyncSendUpdate,
|
||||
&send,
|
||||
&send.update_users_revision(&mut conn).await,
|
||||
&headers.device.uuid,
|
||||
&String::from("00000000-0000-0000-0000-000000000000"),
|
||||
&mut conn,
|
||||
)
|
||||
.await;
|
||||
@ -437,7 +436,6 @@ async fn post_access_file(
|
||||
file_id: &str,
|
||||
data: JsonUpcase<SendAccessData>,
|
||||
host: Host,
|
||||
headers: Headers,
|
||||
mut conn: DbConn,
|
||||
nt: Notify<'_>,
|
||||
) -> JsonResult {
|
||||
@ -482,7 +480,7 @@ async fn post_access_file(
|
||||
UpdateType::SyncSendUpdate,
|
||||
&send,
|
||||
&send.update_users_revision(&mut conn).await,
|
||||
&headers.device.uuid,
|
||||
&String::from("00000000-0000-0000-0000-000000000000"),
|
||||
&mut conn,
|
||||
)
|
||||
.await;
|
||||
|
Loading…
Reference in New Issue
Block a user