PagePermission.CheckDemand(PageRights) functions only with the current User Roles
//get permsissions for secured object for all roles in default provider
IList permissions = cmsManager.SecurityManager.GetPermissions((ISecured)page);
grant = permission.Grant;
grant |= PageRights.Delete;
(permission.Grant == grant)
//get permission for particlular role from particular provider
IAccessPermisson accessPermission = cmsManager.SecurityManager.GetPermission((ISecured)page,
deny = accessPermission.Deny;
deny |= PageRights.View;
(accessPermission.Deny == deny)
//means that the View permission is set to deny for this role for particular page
Make Sitefinity work best for you.
Progress, Telerik, Sitefinity and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.