pattern-directory
pattern-directory copied to clipboard
Creator: When replacing an image, the upload option is available
Describe the bug Users do not have permissions to upload media but when replacing an image, the option to upload is there. Trying to upload anything will return an error, which can be confusing since the option is there.
To Reproduce Steps to reproduce the behavior:
- Add or edit a pattern
- Insert an image block (or media & text, etc), pick an image from the Openverse library
- Click on "Replace"
- You see the option to upload, or edit the image URL
Expected behavior
"Media library" and "Reset" should be the only available options. Ideally the image URL is not editable as well, to prevent users from inserting potentially non-CC0 images (see #494).
Screenshots