Added a new option in workflow notificationSettings to ensure that notifications are also sent to inactive users.
Added a new option in workflow notificationSettings to ensure that notifications are also sent to inactive users.
see : https://github.com/pimcore/pimcore/issues/16867
Review Checklist
- [ ] Target branch (
11.2for bug fixes, others11.x) - [ ] Tests (if it's testable code, there should be a test for it - get help)
- [ ] Docs (every functionality needs to be documented, see here)
- [ ] Migration incl.
install.sql(e.g. if the database schema changes, ...) - [ ] Upgrade notes (deprecations, important information, migration hints, ...)
- [ ] Label
- [ ] Milestone
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication
@rahul-pim-dev Thanks a lot, could you please sign the CLA?
I would call the current behaviour more like a bug. The workflow engine should not send notifications to inactive users. I would say let's not make this configurable. I would call this more like a "security leak". When someone deactivates a user this user should not get any notifications anymore (and therefore receive potentially internal information). If someone wants to send notifications to users without real access to the Pimcore backend it would be possible to add a user without rights but activate it.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication
@rahul-pim-dev Sorry for the late feedback - missed your commit. It LGTM but could you please sign the CLA?
@markus-moser I've signed the CLA. Thanks for letting me know!
Quality Gate passed
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
@rahul-pim-dev
I tested it and found a few problems:
- The email field could be either null or (potentially) an empty string. The empty email check did not work for an empty string.
- Pimcore notifications should be sent to (active) users without email.
Therefore I improved your PR a bit -> now it's fine and I'll merge it. Thanks a lot!