This project is read-only.

Why does widgets need to check permissions?

Topics: Core, General
Jun 11, 2015 at 10: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 4:09 PM
I think this is desired: widgets are still content items that can have content permissions.