mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Only display bulk actions for tracked changes when permitted (#18038)
GitOrigin-RevId: a2f4df9c26866aab3eea62c92ce6e1a211e08294
This commit is contained in:
@@ -133,7 +133,7 @@ function CurrentFileContainer() {
|
||||
return <AddCommentEntry key={id} />
|
||||
}
|
||||
|
||||
if (entry.type === 'bulk-actions') {
|
||||
if (entry.type === 'bulk-actions' && permissions.write) {
|
||||
return (
|
||||
<BulkActionsEntry
|
||||
key={id}
|
||||
|
||||
@@ -89,7 +89,7 @@ function EditorWidgets() {
|
||||
>
|
||||
<div className="rp-in-editor-widgets-inner">
|
||||
{wantTrackChanges && <ToggleWidget />}
|
||||
{nChanges > 1 && (
|
||||
{nChanges > 1 && permissions.write && (
|
||||
<>
|
||||
<BulkActions.Button onClick={handleShowBulkAcceptDialog}>
|
||||
<Icon type="check" /> {t('accept_all')} ({nChanges})
|
||||
|
||||
Reference in New Issue
Block a user