]> BookStack Code Mirror - bookstack/blobdiff - app/Uploads/Attachment.php
fix(503): massively simplify the 503 error view
[bookstack] / app / Uploads / Attachment.php
index a470ec5346ccfc091642eee052d5e8022a28d40b..5e637246a66b25b04f6256b92f7b8e1fca37778f 100644 (file)
@@ -93,7 +93,7 @@ class Attachment extends Model
 
         return $permissionService->filterRelatedEntity(
             Page::class,
-            Attachment::query(),
+            self::query(),
             'attachments',
             'uploaded_to'
         );