- Issue created by @loze
- πΊπΈUnited States loze Los Angeles
Digging into this, I see that we are checking for 'create and edit custom blocks' as a permission to show the form.
This permission is provided by layout_builder which may not necessarily be installed (In my case is wasn't).This module should either provided its own permission 'gutenberg create and edit custom block_content' ?
or possibly check the $block->access('update') on the individual block. - Merge request !149Issue #3450216 Provide custom content block create/edit permissions β (Merged) created by loze
- πΊπΈUnited States loze Los Angeles
My MR does the following:
- adds the permission 'create and edit custom gutenberg content blocks' for all content block types in the editor so it does not need ot rely on the layout_builder permission
- Shows a warning message to the user if they do not have permission
- removes the submit button on the form if they do not have permission
- Gets rid of the error messages if they submit the node with no contentBlockId
- Status changed to Needs review
8 months ago 2:20am 28 May 2024 -
marcofernandes β
committed b329d381 on 3.x authored by
loze β
Issue #3450216 Provide custom content block create/edit permissions
-
marcofernandes β
committed b329d381 on 3.x authored by
loze β
- Status changed to Fixed
8 months ago 8:12am 28 May 2024 -
marcofernandes β
committed b329d381 on 3.0.x authored by
loze β
Issue #3450216 Provide custom content block create/edit permissions
-
marcofernandes β
committed b329d381 on 3.0.x authored by
loze β
Automatically closed - issue fixed for 2 weeks with no activity.