1 - Create a blank site, add a public page to it and place the calendar portlet on it. Configure the site calendar to enable comments.
2 - On the guest site (Liferay DXP), add a public page, place the calendar portlet on it. Configure the site calendar to enable comments.
3 - Create a user, assign the user as member of the guest site and the new site created in step 1. Also assign the user the 'Power User' role.
4 - Go to "Define Permissions" for the Power User role, search for calendar, tick the Add Discussion permission in the Calendar Event section and save.
5 - As system admin, create 1 event in the Guest site, and 1 event in the new site.
6 - As the user created in step 3, view the event in the guest site> Select the event, click View Details. Then add a comment. The comment is added fine.
7 - As the user created in step 3, view the event in the new site created in step 1 > Select the event, click View Details. Then add a comment.
Result: The comment is not added, the user sees the message 'You do not have the required permission' on the UI, nothing in Tomcat console.
Expected: The comment should be added.
Master@b3be1b0b4001506e38594faf39497cb2e68627c1: works as expected