| 214 | |
| 215 | writer->field("completed_tasks", [this](JSON::ArrayWriter* writer) { |
| 216 | foreach (const Owned<Task>& task, framework_->completedTasks) { |
| 217 | // Skip unauthorized tasks. |
| 218 | if (!approvers_->approved<VIEW_TASK>(*task, framework_->info)) { |
| 219 | continue; |
| 220 | } |
| 221 | |
| 222 | writer->element(*task); |
| 223 | } |
| 224 | }); |
| 225 | |
| 226 | // Model all of the offers associated with a framework. |
no test coverage detected