mirror of
https://github.com/TabbyML/tabby
synced 2024-11-22 08:21:59 +00:00
fix(webserver): repositoryList should be accessible by non-admin users (#2111)
This commit is contained in:
parent
1a7f07d50b
commit
0b1315c4a4
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user