fixes
This commit is contained in:
@@ -171,7 +171,7 @@ async fn handle_socket(
|
||||
.unwrap_or(false);
|
||||
let password_ok = db::verify_workspace_password(&workspace, password.as_deref());
|
||||
if workspace.is_private != 0 && permission.is_none() && !anonymous_token_ok {
|
||||
let _ = send_error(&mut socket, "This workspace is private").await;
|
||||
let _ = send_error(&mut socket, "Workspace not found").await;
|
||||
return;
|
||||
}
|
||||
if workspace.password_hash.is_some()
|
||||
|
||||
@@ -114,7 +114,7 @@ async fn handle_pad_socket(mut socket: WebSocket, state: SharedState, slug: Stri
|
||||
let _ = send_pad(
|
||||
&mut socket,
|
||||
&PadServerMessage::Error {
|
||||
message: "This note is private".into(),
|
||||
message: "Note not found".into(),
|
||||
},
|
||||
)
|
||||
.await;
|
||||
|
||||
Reference in New Issue
Block a user