refactor: add redundant protection checks (#1822)

This commit is contained in:
Mo
2022-10-18 10:15:14 -05:00
committed by GitHub
parent eec7ae1589
commit 07ffc01ede
7 changed files with 36 additions and 2 deletions

View File

@@ -37,6 +37,10 @@ const RevisionHistoryModal: FunctionComponent<RevisionHistoryModalProps> = ({
return null
}
if (!application.isAuthorizedToRenderItem(historyModalController.note)) {
return null
}
return (
<HistoryModalDialog onDismiss={historyModalController.dismissModal}>
<HistoryModalDialogContent