Comments (3)
I think this issue is caused by #60317.
from gutenberg.
Thanks for confirming as I was seeing this in my PRs.
That said, I would also like to throw out the idea that if the ability for editors to read templates were determined not be a regression, perhaps the way we check for a user's ability to access the Site Editor could change.
Perhaps outside the scope of this, but it could be cleaner if we had a core-data function that more closely corresponded to current_user_can()
or something similar that we could directly pass user capabilities (i.e. 'edit_theme_options') to.
from gutenberg.
Great find. And yes that seems like my PR introduced this. I would say though that instead of changing the access levels back the way to fix this is using the canUser( 'create', 'templates' )
check.
from gutenberg.
Related Issues (20)
- Editing bound paragraph in post editor causes "Site Updated" message to appear
- Don't show group block's placeholder when there is only one variation available
- wp-env Error while running docker compose command
- Add support for "emphasis" markdown shortcuts HOT 1
- Support "Add Before" and "Add After" for list items HOT 4
- Color style variations don't resolve CSS custom properties HOT 1
- Add aria role etc support for apply_block_supports / provide addtl HTML5-compliant tagnames or attributes to block/post-content
- Button Block: Allow custom width HOT 1
- `@wordpress/primitives` is missing a dependency on `react` HOT 2
- Add support for 'name' attribute of 'details' block. HOT 2
- [Flaky Test] should work with nested lists
- Background image: add support for relative theme path URLs in template and pattern files HOT 1
- Navigation: Block toolbar obscures submenu items when Navigation block is at top of editor HOT 2
- Navigation: Make 'Manage menus' button link to site-editor.php?postType=wp_navigation
- Group: Add support for shadows HOT 2
- Post Date: Add relative date format HOT 1
- Global Styles: Can't remove a custom color from palette in Safari HOT 1
- Consider adding a general purpose Link block or block supports HOT 2
- Color variations in the Styles section take two clicks and make you lose your place
- useRef doesnโt work for widgets in editor.BlockEdit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gutenberg.