Skip to content

Commit

Permalink
Merge pull request #218 from aartse/patch-1
Browse files Browse the repository at this point in the history
Fixed xml modify-image-library-permissions.md
  • Loading branch information
jeff-matthews authored Dec 6, 2023
2 parents 5daa27f + 34cc4df commit bd6b198
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/pages/tutorials/backend/modify-image-library-permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,21 @@ In this tutorial, you will learn how to extend "Media Gallery Allowed" folders u
1. Add a new "Media Gallery Allowed" folder:

```xml
<system>
<media_storage_configuration>
<allowed_resources>
<media_gallery_image_folders>
<!-- new "Media Gallery Allowed" folders -->
<my_image_folder>custom_folder_name</my_image_folder>
<my_catalog_image_folder>catalog/custom_folder_name</my_catalog_image_folder>
</media_gallery_image_folders>
</allowed_resources>
</media_storage_configuration>
</system>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<system>
<media_storage_configuration>
<allowed_resources>
<media_gallery_image_folders>
<!-- new "Media Gallery Allowed" folders -->
<my_image_folder>custom_folder_name</my_image_folder>
<my_catalog_image_folder>catalog/custom_folder_name</my_catalog_image_folder>
</media_gallery_image_folders>
</allowed_resources>
</media_storage_configuration>
</system>
</default>
</config>
```

## Commerce versions 2.4.0 - 2.4.3
Expand Down

0 comments on commit bd6b198

Please sign in to comment.