Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor: reject GET /project for Developer at the casbin ACL level (#3188)
Tianzhou (天舟)9ead4319c2ca
diff --git a/server/acl_casbin_policy_developer.csv b/server/acl_casbin_policy_developer.csvindex ab00b2d924..2bbfff6dd2 100644--- a/server/acl_casbin_policy_developer.csv+++ b/server/acl_casbin_policy_developer.csv@@ -3,7 +3,6 @@ p, DEVELOPER, /principal/{id}, GETp, DEVELOPER, /principal/{id}, PATCH_SELFp, DEVELOPER, /member, GETp, DEVELOPER, /project, POST-p, DEVELOPER, /project, GETp, DEVELOPER, /project/{id}, GETp, DEVELOPER, /project/{id}, PATCHp, DEVELOPER, /project/{id}/repository, GETdiff --git a/server/project.go b/server/project.goindex 8391b29603..f1d559d3d4 100644--- a/server/project.go+++ b/server/project.go@@ -89,14 +89,6 @@ func (s *Server) registerProjectRoutes(g *echo.Group) {projectFind.PrincipalID = &userID}- // Only Owner and DBA can fetch all projects from all users.- if projectFind.PrincipalID == nil {- role := c.Get(getRoleContextKey()).(api.Role)- if role != api.Owner && role != api.DBA {- return echo.NewHTTPError(http.StatusForbidden, "Not allowed to fetch all project list")- }- }-if rowStatusStr := c.QueryParam("rowstatus"); rowStatusStr != "" {rowStatus := api.RowStatus(rowStatusStr)projectFind.RowStatus = &rowStatus