Skip to content

Instantly share code, notes, and snippets.

@klpatil
Created December 27, 2018 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klpatil/f7c4163ab412dc7e1b9da71a87c97c64 to your computer and use it in GitHub Desktop.
Save klpatil/f7c4163ab412dc7e1b9da71a87c97c64 to your computer and use it in GitHub Desktop.
AccessResultCache Print
Sitecore.Security.AccessControl.AccessResultCacheRecord aRecord
= arCache.InnerCache.GetValue(arCacheKey) as Sitecore.Security.AccessControl.AccessResultCacheRecord;
if (aRecord != null)
{
Sitecore.Security.AccessControl.AccessResult aResult =
aRecord.Value as Sitecore.Security.AccessControl.AccessResult;
if (aResult != null)
{
Response.Write("Key : " + arCacheKey.AccessRight.Title +
"," + arCache.InnerCache.GetValue(arCacheKey) + ","
+ aRecord.Value + "," + aResult.Permission.ToString() + "," + aResult.Explanation.Text);
Response.Write("<br/>");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment