imports/vx/both/code/util.js
/**
     * Determine whether a user is a tenant administrator.
     *
     * @param {string} userId User or ID.
     * @param {string} tenantId Tenant ID.
     * @return {boolean} True if user carries TENANTADMIN role within the tenant.
     */
Determine whether a user is a tenant administrator.
@param {string} userId User or ID.
@param {string} tenantId Tenant ID.
@return {boolean} True if user carries TENANTADMIN role within the tenant.
Determine whether a user is a tenant administrator . @param { string } userId User or ID . @param { string } tenantId Tenant ID . @return { boolean } True if user carries TENANTADMIN role within the tenant .
isUserTenantAdmin(userId, tenantId) {
        userId = userId || Meteor.userId()
        tenantId = tenantId || Util.getCurrentTenantId(userId)
        return Util.doesUserHaveRole(userId, tenantId, "TENANTADMIN")
    }
isUserTenantAdmin ( userId , tenantId ) { userId = userId || Meteor . userId ( ) tenantId = tenantId || Util . getCurrentTenantId ( userId ) return Util . doesUserHaveRole ( userId , tenantId , "TENANTADMIN" ) }
Determine whether a user is a tenant administrator.
Determine whether a user is a tenant administrator .