export function isAdmin(authState) {
  for (const perm of Object.keys(authState.permissions)) {
    if (authState.permissions[perm]) return true
  }
  return false
}

export function checkPermissions(authState, ...permissionsToCheck) {
  const perms = authState.permissions
  return permissionsToCheck.every(p => perms[p])
}

export function isAdmin(authState) {
  return authState.permissions.valueSeq().some(perm => perm)
}

export function checkPermissions(authState, ...permissionsToCheck) {
  const perms = authState.permissions
  return permissionsToCheck.every(p => perms[p])
}

Fix isAdmin check so it actually works.
Fix isAdmin check so it actually works.
