From 92d6966f69209e5976e9857bf23865df2f156ebc Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Mon, 22 Apr 2024 13:47:09 +0100 Subject: [PATCH] Only display bulk actions for tracked changes when permitted (#18038) GitOrigin-RevId: a2f4df9c26866aab3eea62c92ce6e1a211e08294 --- .../components/review-panel/current-file-container.tsx | 2 +- .../components/review-panel/editor-widgets/editor-widgets.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/frontend/js/features/source-editor/components/review-panel/current-file-container.tsx b/services/web/frontend/js/features/source-editor/components/review-panel/current-file-container.tsx index 3c4f75f8a9..ea30787f27 100644 --- a/services/web/frontend/js/features/source-editor/components/review-panel/current-file-container.tsx +++ b/services/web/frontend/js/features/source-editor/components/review-panel/current-file-container.tsx @@ -133,7 +133,7 @@ function CurrentFileContainer() { return } - if (entry.type === 'bulk-actions') { + if (entry.type === 'bulk-actions' && permissions.write) { return (
{wantTrackChanges && } - {nChanges > 1 && ( + {nChanges > 1 && permissions.write && ( <> {t('accept_all')} ({nChanges})