Skip to content

Commit 4418d03

Browse files
authored
Merge pull request #2601 from tekdi/release-prod-fix
Release prod fix to admin prod
2 parents c0ad37d + a10e8ca commit 4418d03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mfes/workspace/src/components/KaTableComponent.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import QrModal from './QrModal';
2424
import ContentCopyIcon from '@mui/icons-material/ContentCopy';
2525
import { table } from 'console';
2626
import Checkbox from '@mui/material/Checkbox';
27-
import { TENANT_DATA } from '@workspace/utils/app.constant';
27+
import { Role, TENANT_DATA } from '@workspace/utils/app.constant';
28+
import { getLocalStoredUserRole } from '@workspace/services/LocalStorageService';
2829

2930
interface CustomTableProps {
3031
data: any[]; // Define a more specific type for your data if needed
@@ -126,7 +127,7 @@ const KaTableComponent: React.FC<CustomTableProps> = ({
126127
mode =
127128
content?.status === 'Draft' || content?.status === 'Live'
128129
? 'edit'
129-
: 'review';
130+
: getLocalStoredUserRole() === Role.SCTA ? 'read' : 'review';
130131
break;
131132

132133
default:

0 commit comments

Comments
 (0)