/** * SCREEN-AUTH-002: Role Authorization & Access Denial View. * * Fulfills FR-AUTH-002 & SCREEN-AUTH-002.md (rebaselined under CR-002). * Styled per DESIGN.md: AgriTrade Mercantile (Tactile Corporate Minimalism). */ import React from 'react'; import { authStore } from '../../stores/authStore'; import { Button } from '../../components/ui/Button'; import { ShieldAlert, ArrowLeft, LogOut } from 'lucide-react'; export const AccessDeniedView: React.FC = () => { const user = authStore.getState().user; return (

403 — Authorization Boundary Enforced

Security policy prevents access to this screen or business action under your active role claims.

Security Enforcement Context
Authenticated Identity: {user?.email || 'Anonymous'}
Assigned Roles: {user?.roles?.length ? user.roles.join(', ') : 'None'}
Mandatory Segregation of Duties (BRD-FR-040): Quality Officers cannot edit prices; Yard Supervisors cannot confirm sales; Sales Executives cannot override credit locks.
); };