viewer/vueapp/src/components/hunt/HuntService.js
/**
   * Determines whether a user can view a hunt
   * @param {object} user The user trying to access the hunt
   * @param {object} hunt The hunt being accessed
   * @returns {boolean} - True if the user is the creator of the hunt, or an Arkime admin, or the user has
   *                      been assigned to the hunt, or the user has a role that is assigned to the hunt
   */
Determines whether a user can view a hunt
@param {object} user The user trying to access the hunt
@param {object} hunt The hunt being accessed
@returns {boolean} - True if the user is the creator of the hunt, or an Arkime admin, or the user has
been assigned to the hunt, or the user has a role that is assigned to the hunt
Determines whether a user can view a hunt @param { object } user The user trying to access the hunt @param { object } hunt The hunt being accessed @returns { boolean } - True if the user is the creator of the hunt or an Arkime admin or the user has been assigned to the hunt or the user has a role that is assigned to the hunt
canViewHunt (user, hunt) {
    const huntUsers = hunt.users || [];
    const userRoles = user.roles || [];
    return user.userId === hunt.userId ||
      userRoles.includes('arkimeAdmin') ||
      huntUsers.includes(user.userId) ||
      this.userHasHuntRole(user, hunt);
  }
canViewHunt ( user , hunt ) { const huntUsers = hunt . users || [ ] ; const userRoles = user . roles || [ ] ; return user . userId === hunt . userId || userRoles . includes ( 'arkimeAdmin' ) || huntUsers . includes ( user . userId ) || this . userHasHuntRole ( user , hunt ) ; }
Determines whether a user can view a hunt
 @param {object} user The user trying to access the hunt
 @param {object} hunt The hunt being accessed
 @returns {boolean} - True if the user is the creator of the hunt, or an Arkime admin, or the user has
                      been assigned to the hunt, or the user has a role that is assigned to the hunt
Determines whether a user can view a hunt @param { object } user The user trying to access the hunt @param { object } hunt The hunt being accessed @returns { boolean } - True if the user is the creator of the hunt or an Arkime admin or the user has been assigned to the hunt or the user has a role that is assigned to the hunt