We sometimes override role permissions and it would be useful if a warning could be displayed on /admin/people/permissions
.
Create a class implementing ConfigFactoryOverrideInterface
that adds some permissions:
public function loadOverrides($names): array {
$overrides = [];
if (in_array('user.role.webmestre', $names)) {
$overrides['user.role.webmestre']['permissions'][9999] = 'foo';
$overrides['user.role.webmestre']['permissions'][9998] = 'bar';
}
return $overrides;
}
FormOverrides::getFormConfigNames()
should handle UserPermissionsForm
.
Needs review
1.3
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.