Aug 17 - Update customer inspector can update issue status

This commit is contained in:
2026-08-17 16:46:26 -04:00
parent 436ef5dafb
commit 607da7ae47
4 changed files with 72 additions and 7 deletions
@@ -371,9 +371,12 @@ struct HistoryDetailView: View {
/// Auditors are read-only everywhere else and the API rejects them (403),
/// so the two action buttons are hidden rather than shown failing.
///
/// `issueActors` is the same set minus auditor, and unlike the literal
/// list this replaced it includes Customer Inspectors, who perform
/// inspections exactly as our own do.
private var canStartFollowUp: Bool {
["admin", "director", "inspector", "project_manager"]
.contains(auth.currentUserRole)
Constants.Roles.issueActors.contains(auth.currentUserRole)
}
// Local SwiftData copy used only for follow-up sync-back.