Tuesday, 23 June 2015

How to check if user has Read Permission on Given Item

  User u = Sitecore.Context.User;

 bool isAllowed = AuthorizationManager.IsAllowed(contextItem, AccessRight.ItemRead, u);

No comments:

Post a Comment

Featured post

Getting Started With SOLR

Getting Started with Solr ·           Features o    Hit highlighting o    Auto correction o    Faceted Search o    Multi lan...