Commit dcb90e8
fix(approvals): surface the admin override for a stuck request in the inbox (#3424) (#2810)
Backend #3424 lets a platform/tenant admin act on a pending approval routed to an
unstaffed position (otherwise undecidable, locking the record forever) via a new
server-computed `viewer.can_override`. Mirror it in the console so the recovery
path is visible in-product:
- Add `can_override` to the `viewer` type (optional — an older backend without it
reads as false).
- `canApproveReject` ORs in `viewer.can_override`, so the reply box shows and the
"why disabled" hint no longer contradicts the approve/reject/reassign buttons
(which the backend's declared-action `visible` CEL already ORs `can_override`
into). Normal approver/submitter gating is unchanged.
Claude-Session: https://claude.ai/code/session_01VmQPXXbgomoqrXtoxr3CS2
Co-authored-by: Claude <noreply@anthropic.com>1 parent b821287 commit dcb90e8
2 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
690 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
691 | 694 | | |
692 | 695 | | |
693 | | - | |
| 696 | + | |
694 | 697 | | |
695 | 698 | | |
696 | 699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
0 commit comments