code: private UserRole getPanelRole(User user, Panel panel) {
      if (panel != null) {
        PanelUserDAO panelUserDAO = new PanelUserDAO();
        PanelUser panelUser = panelUserDAO.findByPanelAndUserAndStamp(panel, user, panel.getCurrentStamp());
        return panelUser == null ? getEveryoneRole() : panelUser.getRole();
      }
     
      return getEveryoneRole();
    }
docs: Returns user's panel role
  
  @param user user
  @param panel panel
  @return user's panel role