Skip to content

Commit

Permalink
Merge pull request #2827 from actiontech/ee-1938
Browse files Browse the repository at this point in the history
获取黑名单接口权限修改为项目内成员可查看
  • Loading branch information
winfredLIN authored Dec 25, 2024
2 parents 497e409 + cfd0778 commit ddb7175
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sqle/api/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,6 @@ func StartApi(net *gracenet.Net, exitChan chan struct{}, config *config.SqleOpti
v1OpProjectRouter.POST("/:project_name/sql_versions/:sql_version_id/lock", v1.LockSqlVersion)
}

// project admin and global view router
v1ViewProjectRouter := v1Router.Group("/projects", sqleMiddleware.ViewProjectAllowed())
{
v1ViewProjectRouter.GET("/:project_name/blacklist", v1.GetBlacklist)
}

// project member router
v1ProjectOpRouter := v1Router.Group("/projects", sqleMiddleware.ProjectMemberOpAllowed())
{
Expand Down Expand Up @@ -384,6 +378,8 @@ func StartApi(net *gracenet.Net, exitChan chan struct{}, config *config.SqleOpti
v1ProjectViewRouter.GET("/:project_name/sql_versions/:sql_version_id/", v1.GetSqlVersionDetail)
v1ProjectViewRouter.GET("/:project_name/sql_versions/:sql_version_id/sql_version_stages/:sql_version_stage_id/dependencies", v1.GetDependenciesBetweenStageInstance)
v1ProjectViewRouter.GET("/:project_name/sql_versions/:sql_version_id/sql_version_stages/:sql_version_stage_id/associate_workflows", v1.GetWorkflowsThatCanBeAssociatedToVersion)

v1ProjectViewRouter.GET("/:project_name/blacklist", v1.GetBlacklist)
}

// project member router
Expand Down

0 comments on commit ddb7175

Please sign in to comment.