We are using this on a site. However after trying to create a new content type and then set its permissions i started getting the following error:
RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "administer blocks provided by block_content". in Drupal\user\Entity\Role->calculateDependencies() (line 207 of core/modules/user/src/Entity/Role.php).
Drupal\Core\Config\Entity\ConfigEntityBase->preSave(Object) (Line: 179)
Drupal\user\Entity\Role->preSave(Object) (Line: 528)
Drupal\Core\Entity\EntityStorageBase->doPreSave(Object) (Line: 483)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 257)
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object) (Line: 354)
Drupal\Core\Entity\EntityBase->save() (Line: 609)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 1025)
user_role_revoke_permissions('block_manager', Array) (Line: 983)
user_role_change_permissions('block_manager', Array) (Line: 249)
Drupal\user\Form\UserPermissionsForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('user_admin_permissions', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
When i check under: admin/people/permissions/module/block_permissions for 'Manage blocks provided by block_content' i dont see the permission there any more. However when i check config for my 'block_manager' role the permission is still there -_-
cat config/sync/user.role.block_manager.yml
langcode: en
status: true
dependencies:
config:
- filter.format.basic_html
- filter.format.full_html
- filter.format.html_code
- filter.format.minimal_formatting
- media.type.document
- media.type.image
- media.type.secure_document
- media.type.video
module:
- block
- block_access
- block_content
- block_permissions
- contextual
- editoria11y
- eu_cookie_compliance
- exclude_node_title
- file
- filter
- help
- lehigh_varnish
- linkchecker
- media
- system
- toolbar
- workbench
id: block_manager
label: 'Block Manager'
weight: -2
is_admin: null
permissions:
- 'access administration pages'
- 'access block library'
- 'access contextual links'
- 'access help pages'
- 'access media overview'
- 'access own broken links report'
- 'access toolbar'
- 'access workbench'
- 'administer block settings for theme xxxxxx'
- 'administer blocks'
- 'administer blocks provided by block_content'
- 'administer blocks provided by menu_block'
- 'administer blocks provided by views'
- 'administer blocks provided by webform'
- 'clear varnish'
- 'create basic block_content'
- 'create department_footer block_content'
- 'create document media'
- 'create image media'
- 'create secure_document media'
- 'create video media'
- 'delete any document media'
- 'delete any image media'
- 'delete any secure_document media'
- 'delete any video media'
- 'delete own document media'
- 'delete own files'
- 'delete own image media'
- 'delete own secure_document media'
- 'delete own video media'
- 'display eu cookie compliance popup'
- 'edit any document media'
- 'edit any image media'
- 'edit any secure_document media'
- 'edit any video media'
- 'edit own document media'
- 'edit own image media'
- 'edit own secure_document media'
- 'edit own video media'
- 'mark as hidden in editoria11y'
- 'update any basic block_content'
- 'update any department_footer block_content'
- 'update own basic block_content'
- 'update own department_footer block_content'
- 'use exclude node title'
- 'use text format basic_html'
- 'use text format full_html'
- 'use text format html_code'
- 'use text format minimal_formatting'
- 'view all media revisions'
- 'view editoria11y checker'
- 'view own unpublished media'
- 'view the administration theme'