async authorize(ip) {
    return await Promise.all(this.permissions.permissions.map(async permission => {
      return await this.authorizeOne(ip, permission).catch((error) => { console.log(error); return permission.securitygroup + ": Error. see logs."; });
    })).catch((error) => { throw (error); });
  }
/**
   * Authorize all permissions to the given IP.
   * 
   * @returns {Array} List of changes to show on page.
   * @throws In case of global error.
   */
Authorize all permissions to the given IP.

@returns {Array} List of changes to show on page.
@throws In case of global error.
Authorize all permissions to the given IP . @returns { Array } List of changes to show on page . @throws In case of global error .
async authorize(ip) {
    return await Promise.all(this.permissions.permissions.map(async permission => {
      return await this.authorizeOne(ip, permission).catch((error) => { console.log(error); return permission.securitygroup + ": Error. see logs."; });
    })).catch((error) => { throw (error); });
  }
async authorize ( ip ) { return await Promise . all ( this . permissions . permissions . map ( async permission => { return await this . authorizeOne ( ip , permission ) . catch ( ( error ) => { console . log ( error ) ; return permission . securitygroup + ": Error. see logs." ; } ) ; } ) ) . catch ( ( error ) => { throw ( error ) ; } ) ; }
Authorize all permissions to the given IP.
Authorize all permissions to the given IP .