Developer forum

Forum » Development » Validate access to page

Validate access to page


Reply
Hi guys,

I need to validate if a user has access to a given page.

Here's the code:

var supPage = PageView.GetPageviewByPageID((int)item);

// This line always writes "false"
//Response.Write(supPage.Security.PageProtect.ToString() + "<br />");

if (supPage.Security.PageProtect == true)
{
  //... do something clever
}

I hope you can help me soon. The deadline is today.

Replies

 
Nicolai Høeg Pedersen
Reply
Sorry for the late response:

Extranet module:
If Security.IsCurrentUserAllowed(Pagview.Page) Then
End If

Page Password feature:

Security.isPageProtect(

Pageview)

 

You must be logged in to post in the forum