  <nb-card>
    <nb-card-body>
      <table>
        <tr>
          <th>
            Name
          </th>
          <th *ngFor="let rank of ranks">
            {{rank}}
          </th>
        </tr>
        <tr *ngFor="let perm of permissions">
          <td>{{perm.rpcname}}</td>
          <td *ngFor="let rank of ranks">
            <nb-toggle 
            [(ngModel)]="perm[rank]"
            (checkedChange)="settingChanged($event, rank, perm)">
            </nb-toggle>
          </td>
        </tr>
      </table>
    </nb-card-body>
  </nb-card>
