No permissions when displaying widget content - all data from each widget can be displayed, e.g. it is possible to display all calendar events to which you don’t have permissions index.php?module=Home&view=ShowWidget&name=CalendarActivities&type=all
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
Create non-admin user which does not have permissions for Calendar module, like:
As admin user create an upcoming activity, "visibility" does not matter as for non-admin user Calendar module is disabled. I am setting subject as "Admin Activity"
Login as non-admin user
In the Dashboard add "History" widget. You can see I have access to only few widgets as non-admin:
inspect the history widget in developer tools and go to the "refresh" element:
Edit the element and change the data-url to "index.php?module=Home&view=ShowWidget&name=CalendarActivities&linkid=57&widgetid=1"
Click on the refresh button which will load the upcoming Activities widget in History widget:
Click on Min/All filter and select All, it will load the "Admin Activity":
Moreover the fix only fixes only one part of the issue which to check if the user has permission to widget or not, but still, the data layer access is unrestricted.