Skip to content

Commit 3ae89b1

Browse files
committed
#3883 changed Copy Existing BOM button to use isGuest
1 parent 6324fb4 commit 3ae89b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer

src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Box } from '@mui/system';
2-
import { MaterialPreview, Project, isGuest, isAtMostRank } from 'shared';
2+
import { MaterialPreview, Project, isGuest } from 'shared';
33
import { NERButton } from '../../../components/NERButton';
44
import WarningIcon from '@mui/icons-material/Warning';
55
import { Tooltip, useTheme } from '@mui/material';
@@ -93,7 +93,7 @@ const BOMTab = ({ project }: { project: Project }) => {
9393
>
9494
Show All Columns
9595
</NERButton>
96-
<NERButton variant="contained" onClick={() => {}} disabled={isAtMostRank('MEMBER', user.role)}>
96+
<NERButton variant="contained" onClick={() => {}} disabled={isGuest(user.role)}>
9797
Copy Existing BOM
9898
</NERButton>
9999
</Box>

0 commit comments

Comments
 (0)