Skip to content

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

chore: allow workspace owner and dba to force rollout issue (#9228)

Danny Xuddbff2c847e8
diff --git a/backend/api/v1/rollout_service.go b/backend/api/v1/rollout_service.go
index b4dd5f6503..9223a064d3 100644
--- a/backend/api/v1/rollout_service.go
+++ b/backend/api/v1/rollout_service.go
@@ -510,7 +510,7 @@ func (s *RolloutService) BatchRunTasks(ctx context.Context, request *v1pb.BatchR
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to check if the issue is approved, error: %v", err)
}
- if !approved {
+ if !approved && !(user.Role == api.Owner || user.Role == api.DBA) {
return nil, status.Errorf(codes.FailedPrecondition, "cannot run the tasks because the issue is not approved")
}