Why does widgets need to check permissions?

Topics: Core, General
Jun 11, 2015 at 9:44 AM
In the Widget filter, why does it check permissions when rendering a widget? Isn't all up to the layer rules to define when a widget should be displayed?
// check permissions
if (!_orchardServices.Authorizer.Authorize(Core.Contents.Permissions.ViewContent, widgetPart)) {
Jun 15, 2015 at 3:09 PM
I think this is desired: widgets are still content items that can have content permissions.