Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Workflow Notifications non admins #37745

Open
brianteeman opened this issue May 5, 2022 · 6 comments
Open

[4.x] Workflow Notifications non admins #37745

brianteeman opened this issue May 5, 2022 · 6 comments

Comments

@brianteeman
Copy link
Contributor

Steps to reproduce the issue

  • Steps to reproduce the issue
  • Enable workflows in the content options with Basic as the default
  • Edit all the Transitions so they have notifications enabled and set the Usergroups to Publisher
  • Ensure that you have users in that group
  • Create a new article and save & close
  • Edit an article and change the stage

Expected result

Notification email sent
image

Actual result

Message says it has been sent but nothing is received
image

@brianteeman
Copy link
Contributor Author

brianteeman commented May 5, 2022

The problem is coming from
if ($receiver->authorise('core.manage', 'com_message'))

This restricts the receivers to those with admin access and com_message access.

That's fine if it is the intended behaviour but the implication of the documentation is that it is not the intended behaviour https://docs.joomla.org/Publishing_Workflow/Scenarios/en#Setting_up_Notifications

It would probably be better to send the mail using getMailer instead of com_messages and thats a very easy change to make

@roland-d
Copy link
Contributor

roland-d commented May 5, 2022

I am working on a PR for exactly that. More details will follow later

@brianteeman
Copy link
Contributor Author

ok I will undo what I have been working on

@brianteeman
Copy link
Contributor Author

For reference I was following the pattern used for actionlogs as that would make it indeoendent of com_messages and allow for com_,mail_templates support

@roland-d
Copy link
Contributor

roland-d commented May 8, 2022

@brianteeman I like the idea of integrating it into the mail templates. Just I was wondering if we should keep the com_messages there as well. If we don´t use com_messages, what is the use of com_messages but that may be a complete different discussion 😄

@brianteeman
Copy link
Contributor Author

If you use com_messages for this then you are restricted to users who have admin access.

com_messages is still for used for many things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants