Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Only list gitlab projects that user at least is a maintainer

天舟91f27fa860c9
diff --git a/frontend/src/store/modules/gitlab.ts b/frontend/src/store/modules/gitlab.ts
index 21b54bc2f7..d85e99d7ac 100644
--- a/frontend/src/store/modules/gitlab.ts
+++ b/frontend/src/store/modules/gitlab.ts
@@ -40,9 +40,11 @@ const actions = {
"req",
`${vcs.instanceURL}/${GITLAB_API_PATH}/projects?membership=true&simple=true`
);
+ // We will use user's token to create webhook in the project, which requires the token owner to
+ // be at least the project maintainer(40)
const data = (
await axios.get(
- `${vcs.instanceURL}/${GITLAB_API_PATH}/projects?membership=true&simple=true`,
+ `${vcs.instanceURL}/${GITLAB_API_PATH}/projects?membership=true&simple=true&min_access_level=40`,
{
headers: {
Authorization: "Bearer " + token,