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);
How can i check the level of permission to the widget in that page ?