Skip to content

Commit

Permalink
Fixed showRestricted not applying when rendering a custom BlocksForm (#…
Browse files Browse the repository at this point in the history
…6026)

Co-authored-by: David Glick <david@glicksoftware.com>
  • Loading branch information
JeffersonBledsoe and davisagli authored May 23, 2024
1 parent 88663c0 commit 03fbeba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/volto/news/6026.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In the EditBlockWrapper, pass the `showRestricted` prop to the BlockChooserButton. @JeffersonBledsoe
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const EditBlockWrapper = (props) => {
const { intl, blockProps, draginfo, children } = props;
const {
allowedBlocks,
showRestricted,
block,
blocksConfig,
selected,
Expand Down Expand Up @@ -115,6 +116,7 @@ const EditBlockWrapper = (props) => {
}}
onMutateBlock={onMutateBlock}
allowedBlocks={allowedBlocks}
showRestricted={showRestricted}
blocksConfig={blocksConfig}
size="24px"
properties={properties}
Expand Down

0 comments on commit 03fbeba

Please sign in to comment.