imports/vx/both/code/util.js
/**
     * Determine whether this report type qualifies for inclusion in the list of reports.

     * @param {object} user User record.
     * @param {string} reportType Report type (e.g., TEAM_STATUS).
     * @return {boolean} True if report type should appear in profile list.
     */
Determine whether this report type qualifies for inclusion in the list of reports.
@param {object} user User record.
@param {string} reportType Report type .
@return {boolean} True if report type should appear in profile list.
Determine whether this report type qualifies for inclusion in the list of reports . @param { object } user User record . @param { string } reportType Report type . @return { boolean } True if report type should appear in profile list .
isAuthorizedReportType(user, reportType) {
        let reportTypeObject = Meteor.i18nMessages.codes.reportType[reportType]
        if (reportTypeObject.role && !Util.isUserRole(user._id, reportTypeObject.role)) {
            return false
        }
        return true
    }
isAuthorizedReportType ( user , reportType ) { let reportTypeObject = Meteor . i18nMessages . codes . reportType [ reportType ] if ( reportTypeObject . role && ! Util . isUserRole ( user . _id , reportTypeObject . role ) ) { return false } return true }
Determine whether this report type qualifies for inclusion in the list of reports.
Determine whether this report type qualifies for inclusion in the list of reports .
// If this row is not available to the current user based on his role, skip it: