We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c97fe88 commit a6f1b8dCopy full SHA for a6f1b8d
1 file changed
apps/webapp/app/components/navigation/SideMenu.tsx
@@ -477,15 +477,17 @@ export function SideMenu({
477
isCollapsed={isCollapsed}
478
/>
479
)}
480
- <SideMenuItem
481
- name="Errors"
482
- icon={IconBugFilled}
483
- activeIconColor="text-amber-500"
484
- inactiveIconColor="text-amber-500"
485
- to={v3ErrorsPath(organization, project, environment)}
486
- data-action="errors"
487
- isCollapsed={isCollapsed}
488
- />
+ {(user.admin || user.isImpersonating) && (
+ <SideMenuItem
+ name="Errors"
+ icon={IconBugFilled}
+ activeIconColor="text-amber-500"
+ inactiveIconColor="text-amber-500"
+ to={v3ErrorsPath(organization, project, environment)}
+ data-action="errors"
+ isCollapsed={isCollapsed}
489
+ />
490
+ )}
491
<SideMenuItem
492
name="Query"
493
icon={TableCellsIcon}
0 commit comments