Obtain Page/Widget Permissions
Hi,
I have one page with one widget developed by me.
In thar Widget i need to obtain this information:
- check the current user permission for this page
- check the current user permission for this widget
to obtain the page permissions i used
var per1 = page.IsGranted(SecurityConstants.Sets.Pages.SetName, SecurityConstants.Sets.Pages.View);
var per2 = page.IsGranted(SecurityConstants.Sets.Pages.SetName, SecurityConstants.Sets.Pages.EditContent);
Hi JV,
The PageControl class implements IOwnership interface with the following members