Aug 17 - Update customer inspector can update issue status
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user