This piece of code use to work however, now i get this error in my SiteFinity project ..
var pgs = App.WorkWith().Pages().Where(pk => pk.Name == root).Get().SingleOrDefault() as PageNode;
Error : SecurityDemandFailException
Telerik.Sitefinity.Pages.Model.PageNode, Telerik.Sitefinity.Model was not granted View in Pages for principals with IDs 00000000-0000-0000-0000-000000000000
I'm not sure why the code is not working anymore
Thanks in advance.