This project is read-only.

Html Widget - Content Item Permissions

Topics: Customizing Orchard, Troubleshooting, Writing modules
Jun 4, 2013 at 7:56 AM
I want a Html Widget to be dislayed only to some users.

To do this I thought the Orchard.ContentPermissions would be the way to go. I've added the "Content Permissions" part to the Html Widget Content Type. No matter what kind of permissions I put on the widget it still displays.

When debugging the Orchard.ContentPermissions I can see that the restrictions are supposted to be done by extending the IAuthorizationServiceEventHandler. To me it seems that the code there is not beeing run for widgets.

(I've also done the same thing to restrict links to be displayed (Custom Links), and there everyting works like a charm. When debugging I can see that the method extending IAuthorizationServiceEventHandler is called.)
Jun 4, 2013 at 5:15 PM
This is already fixed in the latest source.
Jun 5, 2013 at 1:00 PM
By looking at the "work item details" in the issue details it seems that this issue is fixed in 1.7 only?
Jun 5, 2013 at 1:13 PM
Yes, it will be included in the next release.
Jul 12, 2013 at 10:35 PM
Piedone wrote:
Yes, it will be included in the next release.
Is there an ETA on the release of 1.7?
Jul 12, 2013 at 10:50 PM
Based on the current active issues for 1.7, I'd say any minute now. Or early next week. :)