diff --git a/src/blocks/plugins/options/index.js b/src/blocks/plugins/options/index.js index a2513e88e..4cb02a9e1 100644 --- a/src/blocks/plugins/options/index.js +++ b/src/blocks/plugins/options/index.js @@ -136,6 +136,9 @@ const Options = () => { setAPILoaded( true ); }); } + } else { + setCanUser( false ); + setAPILoaded( true ); } }; @@ -301,75 +304,81 @@ const Options = () => { - -

- { - __( 'Make those features to be shown by default in Block Tools.', 'otter-blocks' ) - } -

- - { - 'loading' === status && ( -

- - { __( 'Checking optional module...', 'otter-blocks' ) } -

- ) - } - - { - enabledModules?.css && ( - - updatedWithStatus( dispatch( 'core/preferences' )?.set( 'themeisle/otter-blocks', 'show-custom-css', value ) )} - /> - - ) - } - - { - enabledModules?.animation && ( - - updatedWithStatus( dispatch( 'core/preferences' )?.set( 'themeisle/otter-blocks', 'show-animations', value ) )} - /> - - ) - } - - { - enabledModules?.condition && ( - - updatedWithStatus( dispatch( 'core/preferences' )?.set( 'themeisle/otter-blocks', 'show-block-conditions', value ) )} - /> - - ) - } -
- - - { __( 'Block Settings', 'otter-blocks' ) } - + { + canUser && ( + + +

+ { + __( 'Make those features to be shown by default in Block Tools.', 'otter-blocks' ) + } +

+ + { + 'loading' === status && ( +

+ + { __( 'Checking optional module...', 'otter-blocks' ) } +

+ ) + } + + { + enabledModules?.css && ( + + updatedWithStatus( dispatch( 'core/preferences' )?.set( 'themeisle/otter-blocks', 'show-custom-css', value ) )} + /> + + ) + } + + { + enabledModules?.animation && ( + + updatedWithStatus( dispatch( 'core/preferences' )?.set( 'themeisle/otter-blocks', 'show-animations', value ) )} + /> + + ) + } + + { + enabledModules?.condition && ( + + updatedWithStatus( dispatch( 'core/preferences' )?.set( 'themeisle/otter-blocks', 'show-block-conditions', value ) )} + /> + + ) + } +
+ + + { __( 'Block Settings', 'otter-blocks' ) } + +
+ ) + } { applyFilters( 'otter.feedback', '', 'otter-menu-editor', __( 'Help us improve Otter Blocks', 'otter-blocks' ) ) }