Add permissionByModule to user.permissions service

Created on 21 September 2014, about 10 years ago
Updated 17 August 2023, over 1 year ago

Problem/Motivation

As #2295469: Add support for static permission definitions with *.permissions.yml β†’ removed hook_permissions from core renders

$perms = module_invoke($module, 'permission');

useless. This breaks drush https://github.com/drush-ops/drush/pull/830

Proposed resolution

Add method permissionsByModule.

Remaining tasks

Write the mock for the added test.

cd core
phpunit modules/user/tests/src/Unit/PermissionHandlerTest.php

give

1) Drupal\Tests\user\Unit\PermissionHandlerTest::testPermissionsYamlStaticAndCallback
Drupal\Core\Controller\ControllerResolverInterface::getControllerFromDefinition('Drupal\user\Tests\TestPermiss...iption') was not expected to be called more than once.

User interface changes

API changes

πŸ› Bug report
Status

Closed: outdated

Version

9.5

Component
User moduleΒ  β†’

Last updated about 9 hours ago

Created by

πŸ‡³πŸ‡±Netherlands clemens.tolboom Groningen, πŸ‡³πŸ‡±/πŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024