From e6e94f63fe374d7903f96bea1832f01ec2d1acd3 Mon Sep 17 00:00:00 2001 From: Micheal Wells Date: Tue, 19 Sep 2023 15:12:02 -0700 Subject: [PATCH] role check in record dialogue --- app/src/components/activities-list/Tables/NewRecordDialog.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/components/activities-list/Tables/NewRecordDialog.tsx b/app/src/components/activities-list/Tables/NewRecordDialog.tsx index fbd50e671..2cac1178d 100644 --- a/app/src/components/activities-list/Tables/NewRecordDialog.tsx +++ b/app/src/components/activities-list/Tables/NewRecordDialog.tsx @@ -72,6 +72,8 @@ const NewRecordDialog = (props: INewRecordDialog) => { const [activitySubTypeSelectOptions, setActivitySubTypeSelectOptions] = useState([]); const displayName = useSelector((state) => state.Auth.displayName); + const accessRoles = useSelector((state) => state.Auth.accessRoles); + const username = useSelector((state) => state.Auth.username); const { newRecordDialogState } = useSelector(selectUserSettings); useEffect(() => {