mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
server: Prevent user updates from applying to everyone
This commit is contained in:
parent
a952968e9f
commit
63467e5050
@ -220,6 +220,7 @@ impl BackendHandler for SqlBackendHandler {
|
|||||||
let query = Query::update()
|
let query = Query::update()
|
||||||
.table(Users::Table)
|
.table(Users::Table)
|
||||||
.values(values)
|
.values(values)
|
||||||
|
.and_where(Expr::col(Users::UserId).eq(request.user_id))
|
||||||
.to_string(DbQueryBuilder {});
|
.to_string(DbQueryBuilder {});
|
||||||
sqlx::query(&query).execute(&self.sql_pool).await?;
|
sqlx::query(&query).execute(&self.sql_pool).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user