diff --git a/src/Service/AccessStorage.php b/src/Service/AccessStorage.php
index c0902c4..e1eaf0b 100644
--- a/src/Service/AccessStorage.php
+++ b/src/Service/AccessStorage.php
@@ -699,12 +699,7 @@ class AccessStorage {
       return $this->getAllNids();
     }
 
-    $unrestrictedNids = $this->database->select('taxonomy_index', 't')
-      ->fields('t', ['nid'])
-      ->condition('t.nid', $restrictedNids, 'NOT IN')
-      ->distinct(TRUE)
-      ->execute()
-      ->fetchCol();
+    $unrestrictedNids = array_diff($this->getAllNids(), $restrictedNids);
 
     return $unrestrictedNids;
   }
