Enable media editor for everyone

This commit is contained in:
Evan Hahn 2021-12-14 18:53:15 -06:00 committed by GitHub
parent 71e9498961
commit 97d42d5e7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 29 deletions

View file

@ -20,7 +20,6 @@ import {
export type Props<T extends AttachmentType | AttachmentDraftType> = Readonly<{
attachments: ReadonlyArray<T>;
canEditImages?: boolean;
i18n: LocalizerType;
onAddAttachment?: () => void;
onClickAttachment?: (attachment: T) => void;
@ -51,7 +50,6 @@ function getUrl(
export const AttachmentList = <T extends AttachmentType | AttachmentDraftType>({
attachments,
canEditImages,
i18n,
onAddAttachment,
onClickAttachment,
@ -121,7 +119,7 @@ export const AttachmentList = <T extends AttachmentType | AttachmentDraftType>({
/>
);
if (isImage && canEditImages) {
if (isImage) {
return (
<div className="module-attachments--editable">
{imgElement}