Skip to content

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

fix(iam): batch update issue status (#14116)

p0ny044b66932f38
diff --git a/backend/api/v1/acl.go b/backend/api/v1/acl.go
index 8b8c99de88..c3fc6b5c43 100644
--- a/backend/api/v1/acl.go
+++ b/backend/api/v1/acl.go
@@ -305,6 +305,16 @@ func getResourceFromRequest(request any, method string) ([]*common.Resource, err
}
}
+ // HACK(p0ny): unfortunately, BatchUpdateIssuesStatus doesn't comply to aip.
+ if r, ok := request.(*v1pb.BatchUpdateIssuesStatusRequest); ok {
+ for _, issue := range r.Issues {
+ resources = append(resources, &common.Resource{
+ Name: issue,
+ })
+ }
+ return resources, nil
+ }
+
if strings.HasPrefix(shortMethod, "Batch") {
requestsDesc := mr.Descriptor().Fields().ByName("requests")
if requestsDesc != nil {