Issue
When using the Alerts widget, even when the Distribution Scope for an Alert is set to a specific site, the Alert appears on every site that the user visits. Also, guest users visiting the site specified in the Distribution Scope do not see the Alert.
Environment
- Liferay DXP 7.3
Resolution
- The distribution scope chosen when using the Alerts widget for an Alert correlates with the membership and roles that the users possesses in relation to that site, and not the actual site itself that is specified in the Distribution Scope, or the site where the Alerts widget is located.
- For example, if an alert widget is placed on a page in Site A, and an Alert is created with a Distribution Scope pointing to Site A, this alert will appear in every site that has a page that has the Alert widget for any user that is a member of Site A. Any users belonging to Site A will see the alert on any page that has the Alert widget, regardless of what site the widget is on because they are members of that site.
- This is the same reason that guest users visiting Site A will not see the Alert, as they are not members of Site A
- If it is desired to limit an Alert-type post to a specific site, the Announcements widget would be better suited for that use case.