imports/vx/both/code/util.js
/**
     * Determine whether a user is a domain administrator.
     *
     * @param {string} userId User ID.
     * @param {string} domainId Domain ID.
     * @return {boolean} True if user carries DOMAINADMIN role within the domain.
     */
Determine whether a user is a domain administrator.
@param {string} userId User ID.
@param {string} domainId Domain ID.
@return {boolean} True if user carries DOMAINADMIN role within the domain.
Determine whether a user is a domain administrator . @param { string } userId User ID . @param { string } domainId Domain ID . @return { boolean } True if user carries DOMAINADMIN role within the domain .
isUserDomainAdmin(userId, domainId) {
        userId = userId || Meteor.userId()
        domainId = domainId || Util.getCurrentDomainId(userId)
        return Util.doesUserHaveRole(userId, domainId, "DOMAINADMIN")
    }
isUserDomainAdmin ( userId , domainId ) { userId = userId || Meteor . userId ( ) domainId = domainId || Util . getCurrentDomainId ( userId ) return Util . doesUserHaveRole ( userId , domainId , "DOMAINADMIN" ) }
Determine whether a user is a domain administrator.
Determine whether a user is a domain administrator .