Sunday 30 September 2018

Sitecore Gyan : Day 18

In Sitecore, By default all the codes runs in the security context of the context user.
And if user who doesn't have read access and wanted to perform task on the code then use Security User switcher or Security disabler.

using (new Sitecore.SecurityModel.SecurityDisabler())
{
//put the code here
}

No comments:

Post a Comment