Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled
TestCatalogPage: 'Use Template' button had no role check — any user (including viewer/blue_tech/red_tech) could see and click it, which would fail at the backend (POST /tests/from-template requires red_lead|blue_lead). Added canUseTemplate check; button hidden for viewer, blue_tech, red_tech. TechniqueDetailPage: 'Run This Test' / 'Re-run' buttons in the Available Templates section also had no role check. Added canRunTemplate (same criteria: admin|red_lead|blue_lead). The 'View test' button for active tests remains visible to everyone (read-only navigation). Principle: if a user cannot perform the action, the button does not appear — no permission error messages, just absence of the control. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>