diff --git a/Repository/ResourceQueryBuilder.php b/Repository/ResourceQueryBuilder.php
index <HASH>..<HASH> 100644
--- a/Repository/ResourceQueryBuilder.php
+++ b/Repository/ResourceQueryBuilder.php
@@ -399,10 +399,10 @@ class ResourceQueryBuilder
     /**
      * Filters nodes that are published.
      *
-     * @param  $user
+     * @param  $user (not typing because we don't want anon. to crash everything)
      * @return ResourceQueryBuilder
      */
-    public function whereIsAccessible(UserInterface $user)
+    public function whereIsAccessible($user)
     {
         $currentDate = new \DateTime();
         $clause = '(
[CoreBundle] Fixing view as for resource manager.