protected void GetMyAccessRights() { int userid = Convert.ToInt32(Session["UserId"]); User user = new User(); user = user.GetUser(userid); Module module = new Module(); module = module.GetModule("SetupUserRate.aspx"); myAccessRights = myAccessRights.GetRolesModuleAccess(Convert.ToInt32(user.RoleId), module.Id); }
protected void GetMyAccessRights() { int userid = Convert.ToInt32(Session["UserId"]); User user = new User(); user = user.GetUser(userid); TimeTracker.Model.Module module = new TimeTracker.Model.Module(); module = module.GetModule("ReportLaborCost.aspx"); myAccessRights = myAccessRights.GetRolesModuleAccess(Convert.ToInt32(user.RoleId), module.Id); }