File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
mfes/workspace/src/components Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ import QrModal from './QrModal';
2424import ContentCopyIcon from '@mui/icons-material/ContentCopy' ;
2525import { table } from 'console' ;
2626import 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
2930interface 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 :
You can’t perform that action at this time.
0 commit comments