fix(webserver): repositoryList should be accessible by non-admin users (#2111)

This commit is contained in:
Meng Zhang 2024-05-13 05:09:43 -07:00 committed by GitHub
parent 1a7f07d50b
commit 0b1315c4a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -492,7 +492,7 @@ impl Query {
}
async fn repository_list(ctx: &Context) -> Result<Vec<Repository>> {
check_admin(ctx).await?;
check_user(ctx).await?;
ctx.locator.repository().repository_list().await
}
}