Skip to content

Commit

Permalink
fix(webserver): repositoryList should be accessible by non-admin users (
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored May 13, 2024
1 parent 1a7f07d commit 0b1315c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/tabby-schema/src/schema/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 0b1315c

Please sign in to comment.