29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-08-03 17:50:26 +00:00

[4.3] com_messages typo (#41295)

This commit is contained in:
Brian Teeman 2023-08-01 19:58:38 +01:00 committed by GitHub
parent c928ef63ee
commit 08fab2d3dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ class PlgWorkflowNotification extends CMSPlugin implements SubscriberInterface
foreach ($userIds as $user_id) {
$receiver = $container->get(UserFactoryInterface::class)->loadUserById($user_id);
if ($receiver->authorise('core.manage', 'com_message')) {
if ($receiver->authorise('core.manage', 'com_messages')) {
// Load language for messaging
$lang = $container->get(LanguageFactoryInterface::class)
->createLanguage($user->getParam('admin_language', $defaultLanguage), $debug);