Developer forum

Forum » Rapido » Extranet - Rapido

Extranet - Rapido

Farooq Umar
Reply

Hi,

we have a extranet solution where we are checking  user access on pages on Page load (observer) and redirect user to login page if not logged in. This is Working fine but in visual editor it shows the same bahaviour so is there any way to check if there is a DW backend login and by pass the authorization.

BR,

Umar


Replies

 
Nicolai Pedersen
Reply

Hi Umar

You will have "visualedit" as a querystring. So you can check it like this:

if (Dynamicweb.Context.Current.Request.GetBoolean("visualedit")){}

Remember a reference to Dynamicweb.Environment

 

You must be logged in to post in the forum