Created
December 27, 2018 08:56
-
-
Save klpatil/f7c4163ab412dc7e1b9da71a87c97c64 to your computer and use it in GitHub Desktop.
AccessResultCache Print
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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