protected override void OnInit(System.EventArgs e)
{
base.OnInit(e);
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
if (CMSContext.CurrentUser == null)
{
UserManager.LogOut();
Response.Redirect(CMSConfig.CMSAdminPages.GetAdminLoginPage(), true);
}
if (!IsPostBack)
{
//Localy to avoid Access Denied :)
if (!UserManager.CheckIfHasAccessCMS(Request.Url.AbsolutePath))
{
Response.Redirect(CMSConfig.CMSAdminPages.GetAdminAccessDenied(), true);
}
}
this.Load += new System.EventHandler(CMSAdminPageBase_Load);
}
#endregion