// Is the currently logged in user a member of the finance team (AccountsRoles in settings)?
 private Boolean isFinance(int tabmoduleid)
 {
     Boolean result = false;
     System.Collections.Hashtable  settings = new DotNetNuke.Entities.Modules.ModuleController().GetTabModuleSettings(tabmoduleid);
     if (!settings.Contains("AccountsRoles")) return false;
     string[] accountRoles = settings["AccountsRoles"].ToString().Split(';');
     string username = Context.User.Identity.Name;
     DotNetNuke.Entities.Users.UserInfo user = DotNetNuke.Entities.Users.UserController.GetUserByName(username);
     if (user == null || user.Roles == null) return false;
     foreach (string role in accountRoles) {
         if (user.Roles.Contains(role)) result = true;
     }
     return result;
 }