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])
}

@@ -36,132 +36,66 @@
 %7B%0A  
-for (const perm of Object.keys(authState.permissions)) %7B%0A    if (authState.permissions%5Bperm%5D) return true%0A  %7D%0A  return false
+return authState.permissions.valueSeq().some(perm =%3E perm)
 %0A%7D%0A%0A

Fix isAdmin check so it actually works.