Sitecore Blog
Pages
(Move to ...)
Home
Tools & Links
▼
November 25, 2010
Get the logged users data in preview mode
Preview mode is always run in the context of anonymous user.
If you need the user from the admin you can use this method:
Sitecore.Publishing.PreviewManager.RestoreUser();
PS: This method work in the handlers too
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment