PR 2: normalize DiagnosticsController auth; add Maintenance back-links

- DiagnosticsController: replaced raw [Authorize(Roles = "SuperAdmin,Administrator")] with [Authorize(Policy = SuperAdminOnly)] to match every other platform-admin controller; added PowderCoating.Shared.Constants using directive
- DataPurge, DataExport, StorageMigration, SeedData: added "← Maintenance" breadcrumb link at the top of each page so operators know they are in the guarded maintenance area and can navigate back to the hub

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-12 20:50:11 -04:00
parent 4ca90f561e
commit 433090effd
5 changed files with 22 additions and 2 deletions
@@ -29,6 +29,11 @@
}
<div class="container-fluid py-3">
<div class="mb-2">
<a asp-controller="PlatformAdmin" asp-action="Maintenance" class="text-muted small text-decoration-none">
<i class="bi bi-arrow-left me-1"></i>Maintenance
</a>
</div>
<div class="d-flex align-items-center justify-content-between mb-3">
<div>
<h4 class="mb-0"><i class="bi bi-file-earmark-arrow-down me-2 text-primary"></i>Data Export</h4>
@@ -34,6 +34,11 @@
}
<div class="container-fluid py-3">
<div class="mb-2">
<a asp-controller="PlatformAdmin" asp-action="Maintenance" class="text-muted small text-decoration-none">
<i class="bi bi-arrow-left me-1"></i>Maintenance
</a>
</div>
<div class="d-flex align-items-center justify-content-between mb-3">
<div>
<h4 class="mb-0"><i class="bi bi-trash3 me-2 text-danger"></i>Data Purge &amp; Cleanup</h4>
@@ -18,7 +18,11 @@
}
<div class="container-fluid">
<div class="mb-4"></div>
<div class="mb-2">
<a asp-controller="PlatformAdmin" asp-action="Maintenance" class="text-muted small text-decoration-none">
<i class="bi bi-arrow-left me-1"></i>Maintenance
</a>
</div>
@if (TempData["SuccessMessage"] != null)
{
@@ -6,6 +6,11 @@
}
<div class="container-fluid">
<div class="mb-2">
<a asp-controller="PlatformAdmin" asp-action="Maintenance" class="text-muted small text-decoration-none">
<i class="bi bi-arrow-left me-1"></i>Maintenance
</a>
</div>
<div class="row g-4">
<!-- Status Card -->