diff -u b/core/modules/user/src/Form/RoleSettingsForm.php b/core/modules/user/src/Form/RoleSettingsForm.php --- b/core/modules/user/src/Form/RoleSettingsForm.php +++ b/core/modules/user/src/Form/RoleSettingsForm.php @@ -5,6 +5,8 @@ use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Form\FormStateInterface; +use Drupal\user\RoleInterface; +use Drupal\user\RoleStorageInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /** diff -u b/core/modules/user/user.routing.yml b/core/modules/user/user.routing.yml --- b/core/modules/user/user.routing.yml +++ b/core/modules/user/user.routing.yml @@ -35,7 +35,7 @@ _form: '\Drupal\user\Form\RoleSettingsForm' _title: 'Role settings' requirements: - _permission: 'administer account settings' + _permission: 'administer permissions' entity.user.collection: path: '/admin/people'