viewer/vueapp/src/components/hunt/HuntService.js
/**
   * Determines whether a user has a role assigned to 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 has a role assigned to the hunt, false otherwise
   */
Determines whether a user has a role assigned to 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 has a role assigned to the hunt, false otherwise
Determines whether a user has a role assigned to 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 has a role assigned to the hunt false otherwise
userHasHuntRole (user, hunt) {
    if (hunt.roles.length) {
      for (const role of hunt.roles) {
        if (user.roles.indexOf(role) > -1) {
          return true;
        }
      }
    }
    return false;
  }
userHasHuntRole ( user , hunt ) { if ( hunt . roles . length ) { for ( const role of hunt . roles ) { if ( user . roles . indexOf ( role ) > - 1 ) { return true ; } } } return false ; }
Determines whether a user has a role assigned to 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 has a role assigned to the hunt, false otherwise
Determines whether a user has a role assigned to 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 has a role assigned to the hunt false otherwise