diff --git a/app/analysis/edit/controller.js b/app/analysis/edit/controller.js index 1154f1483..5de568495 100644 --- a/app/analysis/edit/controller.js +++ b/app/analysis/edit/controller.js @@ -134,6 +134,9 @@ export default class AnalysisEditController extends Controller { } get canVerify() { + if (this.intersection.lastSuccessful.value.model.rejected !== false) { + return false; + } return ( allQueryParams(this).reviewer === this.session.data.user.id || this.isSuperuser diff --git a/app/models/report-intersection.js b/app/models/report-intersection.js index 8dc9e8f07..8a6ce4202 100644 --- a/app/models/report-intersection.js +++ b/app/models/report-intersection.js @@ -3,7 +3,7 @@ import Model, { attr, belongsTo } from "@ember-data/model"; export default class ReportIntersection extends Model { @attr("string") comment; @attr("boolean", { allowNull: true, defaultValue: null }) notBillable; - @attr("boolean", { allowNull: true, defaultValue: null }) rejected; + @attr("boolean", { allowNull: true, defaultValue: false }) rejected; @attr("boolean", { allowNull: true, defaultValue: null }) review; @attr("boolean", { allowNull: true, defaultValue: null }) billed; @attr("boolean", { allowNull: true, defaultValue: null }) verified;