{client,server}/edit-privs: check for user existence

This commit is contained in:
2025-12-14 01:58:48 +09:00
parent bd23cf693d
commit e56c41cee6
4 changed files with 105 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ use crate::{
};
// NOTE: this function is unsafe because it does no input validation.
async fn unsafe_user_exists(
pub(super) async fn unsafe_user_exists(
db_user: &str,
connection: &mut MySqlConnection,
) -> Result<bool, sqlx::Error> {