Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove unused page utils

IKarbowiak970b66188d0c
diff --git a/saleor/page/utils.py b/saleor/page/utils.py
deleted file mode 100644
index bbc06dc50a..0000000000
--- a/saleor/page/utils.py
+++ /dev/null
@@ -1,8 +0,0 @@
-from .models import Page
-
-
-def pages_visible_to_user(user):
- qs = Page.objects.prefetch_related("translations")
- if user.is_authenticated and user.is_active and user.is_staff:
- return qs
- return qs.published()