Skip to content

Commit d851e9d

Browse files
committed
Admin list only needs read access
1 parent 02879a3 commit d851e9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/admin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub async fn list(
1919
Path(username): Path<String>,
2020
req: Parts,
2121
) -> AppResult<Json<AdminListResponse>> {
22-
let mut conn = state.db_write().await?;
22+
let mut conn = state.db_read().await?;
2323

2424
let auth = AuthCheck::default().check(&req, &mut conn).await?;
2525
let logged_in_user = auth.user();

0 commit comments

Comments
 (0)