Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
Global.EPDataFactory.GetPage(pageref, EPiServer.Security.AccessControlList.NoAccess);
public static String GetListDataLink(Object link)
{
// If we have no reference, return an error
if (link == null)
{
// Return an error link
return "javascript:alert('No target specified - select a Link Page.');";
}
PageReference p = (PageReference) link;
// Page bypassing security
PageData pd = Global.EPDataFactory.GetPage(
p, AccessControlList.NoAccess
);
// Check the access
if ( (pd.QueryAccess() & AccessLevel.Read) == AccessLevel.Read)
{
return DLSIPageLink(pd);
}
else
{
// Return an error link
return "javascript:alert('You do not have access to see the target page (" + pd.PageName + " [" + p.ID + "])');";
}
}
Hope this helps
Jon