diff --git a/services/web/frontend/js/features/review-panel-new/components/review-panel-comment-content.tsx b/services/web/frontend/js/features/review-panel-new/components/review-panel-comment-content.tsx index 86c995b90c..4939785c90 100644 --- a/services/web/frontend/js/features/review-panel-new/components/review-panel-comment-content.tsx +++ b/services/web/frontend/js/features/review-panel-new/components/review-panel-comment-content.tsx @@ -11,6 +11,7 @@ import { CommentId, ThreadId, } from '../../../../../types/review-panel/review-panel' +import { usePermissionsContext } from '@/features/ide-react/context/permissions-context' export const ReviewPanelCommentContent = memo<{ comment: Change @@ -36,6 +37,7 @@ export const ReviewPanelCommentContent = memo<{ }) => { const { t } = useTranslation() const threads = useThreadsContext() + const permissions = usePermissionsContext() const handleSubmit = useCallback( (content, setContent) => onReply?.(content).then(() => setContent('')), @@ -90,7 +92,7 @@ export const ReviewPanelCommentContent = memo<{ )} - {!isResolved && ( + {permissions.comment && !isResolved && (