using System; using System.Data; using System.Collections; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using CMS.CMSHelper; using CMS.SiteProvider; using CMS.UIControls; public partial class CMSModules_Notifications_MyDesk_MyProfile_MyProfile_Notifications : CMSMyProfilePage { protected void Page_Load(object sender, EventArgs e) { // Check site availability if (!ResourceSiteInfoProvider.IsResourceOnSite("CMS.Notifications", CMSContext.CurrentSiteName)) { RedirectToResourceNotAvailableOnSite("CMS.Notifications"); } // Check UIProfile if ((CMSContext.CurrentUser == null) || (!CMSContext.CurrentUser.IsAuthorizedPerUIElement("CMS.MyDesk", "MyProfile.Notifications"))) { RedirectToCMSDeskUIElementAccessDenied("CMS.MyDesk", "MyProfile.Notifications"); } userNotificationsElem.UserId = CMSContext.CurrentUser.UserID; userNotificationsElem.SiteID = CMSContext.CurrentSiteID; } }